diff options
author | 2007-12-31 10:05:43 -0800 | |
---|---|---|
committer | 2008-01-24 20:40:42 -0800 | |
commit | 92b421416f8194aec87b1439487b5544e9ac8187 (patch) | |
tree | d0f29e8252bb50fd30e59936b023956af516ce4a /drivers/base/Makefile | |
parent | sysfs: make SYSFS_DEPRECATED depend on SYSFS (diff) | |
download | linux-92b421416f8194aec87b1439487b5544e9ac8187.tar.gz linux-92b421416f8194aec87b1439487b5544e9ac8187.tar.bz2 linux-92b421416f8194aec87b1439487b5544e9ac8187.zip |
driver core: fix build with SYSFS=n
When SYSFS=n and MODULES=y, build ends with:
linux-2.6.24-rc6-mm1/drivers/base/module.c: In function 'module_add_driver':
linux-2.6.24-rc6-mm1/drivers/base/module.c:49: error: 'module_kset' undeclared (first use in this function)
make[3]: *** [drivers/base/module.o] Error 1
Below is one possible fix.
Build-tested with all 4 config combinations of SYSFS & MODULES.
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base/Makefile')
-rw-r--r-- | drivers/base/Makefile | 2 |
1 files changed, 2 insertions, 0 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 obj-$(CONFIG_NUMA) += node.o obj-$(CONFIG_MEMORY_HOTPLUG_SPARSE) += memory.o obj-$(CONFIG_SMP) += topology.o +ifeq ($(CONFIG_SYSFS),y) obj-$(CONFIG_MODULES) += module.o +endif obj-$(CONFIG_SYS_HYPERVISOR) += hypervisor.o ifeq ($(CONFIG_DEBUG_DRIVER),y) |