diff options
Diffstat (limited to 'include/linux/siox.h')
-rw-r--r-- | include/linux/siox.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/siox.h b/include/linux/siox.h index a860cb8c1f9d..da7225bf1877 100644 --- a/include/linux/siox.h +++ b/include/linux/siox.h | |||
@@ -72,3 +72,13 @@ static inline void siox_driver_unregister(struct siox_driver *sdriver) | |||
72 | { | 72 | { |
73 | return driver_unregister(&sdriver->driver); | 73 | return driver_unregister(&sdriver->driver); |
74 | } | 74 | } |
75 | |||
76 | /* | ||
77 | * module_siox_driver() - Helper macro for drivers that don't do | ||
78 | * anything special in module init/exit. This eliminates a lot of | ||
79 | * boilerplate. Each module may only use this macro once, and | ||
80 | * calling it replaces module_init() and module_exit() | ||
81 | */ | ||
82 | #define module_siox_driver(__siox_driver) \ | ||
83 | module_driver(__siox_driver, siox_driver_register, \ | ||
84 | siox_driver_unregister) | ||