aboutsummaryrefslogtreecommitdiffstats
path: root/driver
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2006-06-30 16:21:36 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2006-06-30 16:21:36 -0700
commitdc49a952fd6cbbdce6aacd9f1efb3ace6f64c4bc (patch)
tree1ce208bd0a9c4a02596da4b95b6272625dd669b7 /driver
parenta5363843f6fde193b61d6b06779229390eb4071c (diff)
downloadpatches-dc49a952fd6cbbdce6aacd9f1efb3ace6f64c4bc.tar.gz
loads of new patches
Diffstat (limited to 'driver')
-rw-r--r--driver/driver-core-bus.c-cleanups.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/driver/driver-core-bus.c-cleanups.patch b/driver/driver-core-bus.c-cleanups.patch
new file mode 100644
index 0000000000000..dcde3ab4e0bab
--- /dev/null
+++ b/driver/driver-core-bus.c-cleanups.patch
@@ -0,0 +1,47 @@
+From bunk@stusta.de Mon Jun 26 13:27:22 2006
+Date: Mon, 26 Jun 2006 22:26:56 +0200
+From: Adrian Bunk <bunk@stusta.de>
+To: gregkh@suse.de
+Cc: linux-kernel@vger.kernel.org
+Subject: Driver core: bus.c cleanups
+Message-ID: <20060626202656.GZ23314@stusta.de>
+Content-Disposition: inline
+
+This patch contains the following cleanups:
+- make the needlessly global bus_subsys static
+- #if 0 the unused find_bus()
+
+Signed-off-by: Adrian Bunk <bunk@stusta.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
+
+
+---
+ drivers/base/bus.c | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+--- gregkh-2.6.orig/drivers/base/bus.c
++++ gregkh-2.6/drivers/base/bus.c
+@@ -130,7 +130,7 @@ static struct kobj_type ktype_bus = {
+
+ };
+
+-decl_subsys(bus, &ktype_bus, NULL);
++static decl_subsys(bus, &ktype_bus, NULL);
+
+
+ #ifdef CONFIG_HOTPLUG
+@@ -599,12 +599,13 @@ void put_bus(struct bus_type * bus)
+ *
+ * Note that kset_find_obj increments bus' reference count.
+ */
+-
++#if 0
+ struct bus_type * find_bus(char * name)
+ {
+ struct kobject * k = kset_find_obj(&bus_subsys.kset, name);
+ return k ? to_bus(k) : NULL;
+ }
++#endif /* 0 */
+
+
+ /**