]> git.sur5r.net Git - groeck-nct6775/commitdiff
compat.h: Define sysfs_attr_init if not defined
authorGuenter Roeck <linux@roeck-us.net>
Thu, 28 Jul 2016 13:35:59 +0000 (06:35 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 28 Jul 2016 13:35:59 +0000 (06:35 -0700)
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
compat.h

index 691d73057869c10560dbae4a8e9b80f310415b7c..4ea3a997928f9fb3c34b3a341a07e242ffff07dd 100644 (file)
--- 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 */