From: Guenter Roeck Date: Thu, 28 Jul 2016 13:35:59 +0000 (-0700) Subject: compat.h: Define sysfs_attr_init if not defined X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b80d866919fcb7496f3272c04d5c7d968f9a89c9;p=groeck-nct6775 compat.h: Define sysfs_attr_init if not defined Signed-off-by: Guenter Roeck --- 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 */