diff options
author | Russell King | 2006-02-07 21:58:20 +0100 |
---|---|---|
committer | Linus Torvalds | 2006-02-08 01:12:31 +0100 |
commit | 2139bdd5b15a4cc450adb17da836f33c16477188 (patch) | |
tree | 16ef47b6bf3f0720fdda857ff66395b0c3634186 /drivers/base/bus.c | |
parent | Merge master.kernel.org:/pub/scm/linux/kernel/git/mchehab/v4l-dvb (diff) | |
download | kernel-qcow2-linux-2139bdd5b15a4cc450adb17da836f33c16477188.tar.gz kernel-qcow2-linux-2139bdd5b15a4cc450adb17da836f33c16477188.tar.xz kernel-qcow2-linux-2139bdd5b15a4cc450adb17da836f33c16477188.zip |
[PATCH] drivers/base/bus.c warning fixes
drivers/base/bus.c:166: warning: `driver_attr_unbind' defined but not used
drivers/base/bus.c:194: warning: `driver_attr_bind' defined but not used
Looks like these two attributes and supporting functions want to be
#ifdef HOTPLUG'd
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/base/bus.c')
-rw-r--r-- | drivers/base/bus.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/base/bus.c b/drivers/base/bus.c index 29f6af554e71..c3141565d59d 100644 --- a/drivers/base/bus.c +++ b/drivers/base/bus.c @@ -133,6 +133,8 @@ static struct kobj_type ktype_bus = { decl_subsys(bus, &ktype_bus, NULL); +#ifdef CONFIG_HOTPLUG + /* Manually detach a device from its associated driver. */ static int driver_helper(struct device *dev, void *data) { @@ -193,6 +195,7 @@ static ssize_t driver_bind(struct device_driver *drv, } static DRIVER_ATTR(bind, S_IWUSR, NULL, driver_bind); +#endif static struct device * next_device(struct klist_iter * i) { |