diff options
Diffstat (limited to 'drivers/base/base.h')
-rw-r--r-- | drivers/base/base.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/base/base.h b/drivers/base/base.h index ca6d273064f8..05472360f6a2 100644 --- a/drivers/base/base.h +++ b/drivers/base/base.h | |||
@@ -73,3 +73,12 @@ extern char *make_class_name(const char *name, struct kobject *kobj); | |||
73 | extern int devres_release_all(struct device *dev); | 73 | extern int devres_release_all(struct device *dev); |
74 | 74 | ||
75 | extern struct kset *devices_kset; | 75 | extern struct kset *devices_kset; |
76 | |||
77 | #ifdef CONFIG_MODULES | ||
78 | extern void module_add_driver(struct module *mod, struct device_driver *drv); | ||
79 | extern void module_remove_driver(struct device_driver *drv); | ||
80 | #else | ||
81 | static inline void module_add_driver(struct module *mod, | ||
82 | struct device_driver *drv) { } | ||
83 | static inline void module_remove_driver(struct device_driver *drv) { } | ||
84 | #endif | ||