* [2.6 patch] drivers/base/bus.c: cleanups
@ 2006-06-26 20:26 Adrian Bunk
0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2006-06-26 20:26 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel
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>
---
drivers/base/bus.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
--- linux-2.6.17-mm2-full/drivers/base/bus.c.old 2006-06-26 19:46:11.000000000 +0200
+++ linux-2.6.17-mm2-full/drivers/base/bus.c 2006-06-26 20:19:01.000000000 +0200
@@ -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 */
/**
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-06-26 20:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-26 20:26 [2.6 patch] drivers/base/bus.c: cleanups Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®