aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/base.h
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2007-12-31 13:05:43 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2008-01-24 23:40:42 -0500
commit92b421416f8194aec87b1439487b5544e9ac8187 (patch)
treed0f29e8252bb50fd30e59936b023956af516ce4a /drivers/base/base.h
parent9148fe8767dc8612b2e66d11126744d6436cc94e (diff)
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/base.h')
-rw-r--r--drivers/base/base.h2
1 files changed, 1 insertions, 1 deletions
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
82extern struct kset *devices_kset; 82extern struct kset *devices_kset;
83 83
84#ifdef CONFIG_MODULES 84#if defined(CONFIG_MODULES) && defined(CONFIG_SYSFS)
85extern void module_add_driver(struct module *mod, struct device_driver *drv); 85extern void module_add_driver(struct module *mod, struct device_driver *drv);
86extern void module_remove_driver(struct device_driver *drv); 86extern void module_remove_driver(struct device_driver *drv);
87#else 87#else