aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2007-11-28 15:23:18 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2008-01-24 23:40:35 -0500
commitc63469a3985a9771c18a916b8d42845d044ea0b1 (patch)
tree7d54c8741aec9d71864203ce430d289d40c4c975 /include
parentcbe9c595f1de2e2a98403be2c14bfbc2486e84c4 (diff)
Driver core: move the driver specific module code into the driver core
The module driver specific code should belong in the driver core, not in the kernel/ directory. So move this code. This is done in preparation for some struct device_driver rework that should be confined to the driver core code only. This also lets us keep from exporting these functions, as no external code should ever be calling it. Thanks to Andrew Morton for the !CONFIG_MODULES fix. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/module.h15
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
614void module_add_driver(struct module *mod, struct device_driver *drv);
615void module_remove_driver(struct device_driver *drv);
616
617#else /* not both CONFIG_SYSFS && CONFIG_MODULES */
618
619static inline void module_add_driver(struct module *mod, struct device_driver *drv)
620{ }
621
622static 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 */