Skip to contentSkip to conversation

drivers/base/bus.c: cleanups

PATCH New Adrian Bunk 1 participant 1 message Jun 26, 2006 Driver core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/base/bus.c: cleanups

This patch contains the following cleanups:
- make the needlessly global bus_subsys static
- #if 0 the unused find_bus()

---

 drivers/base/bus.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/base/bus.c renamed from drivers/base/bus.c.old +3 -2
@@ -130,7 +130,7 @@
 
 };
 
-decl_subsys(bus, &ktype_bus, NULL);
+static decl_subsys(bus, &ktype_bus, NULL);
 
 
 #ifdef CONFIG_HOTPLUG
@@ -599,12 +599,13 @@
  *
  *	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  */
 
 
 /**