diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/module.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index fbe930b9b69c..c97bdb7eb957 100644 --- a/include/linux/module.h +++ b/include/linux/module.h | |||
@@ -609,21 +609,6 @@ static inline void module_remove_modinfo_attrs(struct module *mod) | |||
609 | 609 | ||
610 | #endif /* CONFIG_SYSFS */ | 610 | #endif /* CONFIG_SYSFS */ |
611 | 611 | ||
612 | #if defined(CONFIG_SYSFS) && defined(CONFIG_MODULES) | ||
613 | |||
614 | void module_add_driver(struct module *mod, struct device_driver *drv); | ||
615 | void module_remove_driver(struct device_driver *drv); | ||
616 | |||
617 | #else /* not both CONFIG_SYSFS && CONFIG_MODULES */ | ||
618 | |||
619 | static inline void module_add_driver(struct module *mod, struct device_driver *drv) | ||
620 | { } | ||
621 | |||
622 | static inline void module_remove_driver(struct device_driver *drv) | ||
623 | { } | ||
624 | |||
625 | #endif | ||
626 | |||
627 | #define symbol_request(x) try_then_request_module(symbol_get(x), "symbol:" #x) | 612 | #define symbol_request(x) try_then_request_module(symbol_get(x), "symbol:" #x) |
628 | 613 | ||
629 | /* BELOW HERE ALL THESE ARE OBSOLETE AND WILL VANISH */ | 614 | /* BELOW HERE ALL THESE ARE OBSOLETE AND WILL VANISH */ |