From b80d866919fcb7496f3272c04d5c7d968f9a89c9 Mon Sep 17 00:00:00 2001 From: Guenter Roeck Date: Thu, 28 Jul 2016 06:35:59 -0700 Subject: [PATCH] compat.h: Define sysfs_attr_init if not defined Signed-off-by: Guenter Roeck --- compat.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compat.h b/compat.h index 691d730..4ea3a99 100644 --- a/compat.h +++ b/compat.h @@ -230,4 +230,8 @@ module_exit(__driver##_exit); #define pr_warn_ratelimited pr_warning_ratelimited #endif +#ifndef sysfs_attr_init +#define sysfs_attr_init(attr) do {} while (0) +#endif + #endif /* __COMPAT_H */ -- 2.39.5