aboutsummaryrefslogtreecommitdiffstats
path: root/driver
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2006-01-17 16:51:29 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2006-01-17 16:51:29 -0800
commit0aacc36a37d4bd3f11f2c0794aedcee7f4fe2c54 (patch)
treee19fe1d3bd488c006d43101423018b9dccee7b4d /driver
parentf798688c84f02fc1a9906c55e0df434125c6f5a7 (diff)
downloadpatches-0aacc36a37d4bd3f11f2c0794aedcee7f4fe2c54.tar.gz
added new patches
Diffstat (limited to 'driver')
-rw-r--r--driver/fix-compiler-warning-in-driver-core-for-config_hotplug-n.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/driver/fix-compiler-warning-in-driver-core-for-config_hotplug-n.patch b/driver/fix-compiler-warning-in-driver-core-for-config_hotplug-n.patch
new file mode 100644
index 0000000000000..25d1eac01ec95
--- /dev/null
+++ b/driver/fix-compiler-warning-in-driver-core-for-config_hotplug-n.patch
@@ -0,0 +1,42 @@
+From rmk+gregkh=suse.de@arm.linux.org.uk Tue Jan 17 16:39:01 2006
+Date: Sat, 14 Jan 2006 20:01:02 +0000
+From: Russell King <rmk@arm.linux.org.uk>
+To: Greg KH <gregkh@suse.de>
+Subject: Fix compiler warning in driver core for CONFIG_HOTPLUG=N
+Message-ID: <20060114200101.GD24816@flint.arm.linux.org.uk>
+Content-Disposition: inline
+
+FYI, while running a build test, I found:
+
+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>
+Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
+
+---
+ drivers/base/bus.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+--- gregkh-2.6.orig/drivers/base/bus.c
++++ gregkh-2.6/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
+ }
+ static DRIVER_ATTR(bind, S_IWUSR, NULL, driver_bind);
+
++#endif
+
+ static struct device * next_device(struct klist_iter * i)
+ {