diff options
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/Makefile | 2 | ||||
-rw-r--r-- | drivers/base/base.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/base/Makefile b/drivers/base/Makefile index ff2696823f8d..63e09c015ca0 100644 --- a/drivers/base/Makefile +++ b/drivers/base/Makefile | |||
@@ -11,7 +11,9 @@ obj-$(CONFIG_FW_LOADER) += firmware_class.o | |||
11 | obj-$(CONFIG_NUMA) += node.o | 11 | obj-$(CONFIG_NUMA) += node.o |
12 | obj-$(CONFIG_MEMORY_HOTPLUG_SPARSE) += memory.o | 12 | obj-$(CONFIG_MEMORY_HOTPLUG_SPARSE) += memory.o |
13 | obj-$(CONFIG_SMP) += topology.o | 13 | obj-$(CONFIG_SMP) += topology.o |
14 | ifeq ($(CONFIG_SYSFS),y) | ||
14 | obj-$(CONFIG_MODULES) += module.o | 15 | obj-$(CONFIG_MODULES) += module.o |
16 | endif | ||
15 | obj-$(CONFIG_SYS_HYPERVISOR) += hypervisor.o | 17 | obj-$(CONFIG_SYS_HYPERVISOR) += hypervisor.o |
16 | 18 | ||
17 | ifeq ($(CONFIG_DEBUG_DRIVER),y) | 19 | ifeq ($(CONFIG_DEBUG_DRIVER),y) |
diff --git a/drivers/base/base.h b/drivers/base/base.h index a74ceda34e19..f7ad65a249cb 100644 --- a/drivers/base/base.h +++ b/drivers/base/base.h | |||
@@ -81,7 +81,7 @@ extern int devres_release_all(struct device *dev); | |||
81 | 81 | ||
82 | extern struct kset *devices_kset; | 82 | extern struct kset *devices_kset; |
83 | 83 | ||
84 | #ifdef CONFIG_MODULES | 84 | #if defined(CONFIG_MODULES) && defined(CONFIG_SYSFS) |
85 | extern void module_add_driver(struct module *mod, struct device_driver *drv); | 85 | extern void module_add_driver(struct module *mod, struct device_driver *drv); |
86 | extern void module_remove_driver(struct device_driver *drv); | 86 | extern void module_remove_driver(struct device_driver *drv); |
87 | #else | 87 | #else |