Skip to content

Commit

Permalink
[PATCH] Driver core: bus.c cleanups
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and Greg Kroah-Hartman committed Jul 12, 2006
1 parent 42734da commit 7e4ef08
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/base/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ static struct kobj_type ktype_bus = {

};

decl_subsys(bus, &ktype_bus, NULL);
static decl_subsys(bus, &ktype_bus, NULL);


#ifdef CONFIG_HOTPLUG
Expand Down Expand Up @@ -598,12 +598,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 */


/**
Expand Down

0 comments on commit 7e4ef08

Please sign in to comment.