Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e4ef085 authored by Adrian Bunk's avatar Adrian Bunk Committed by Greg Kroah-Hartman
Browse files

[PATCH] Driver core: bus.c cleanups



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

Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 42734daf
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -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
#ifdef CONFIG_HOTPLUG
@@ -598,12 +598,13 @@ void put_bus(struct bus_type * bus)
 *
 *
 *	Note that kset_find_obj increments bus' reference count.
 *	Note that kset_find_obj increments bus' reference count.
 */
 */

#if 0
struct bus_type * find_bus(char * name)
struct bus_type * find_bus(char * name)
{
{
	struct kobject * k = kset_find_obj(&bus_subsys.kset, name);
	struct kobject * k = kset_find_obj(&bus_subsys.kset, name);
	return k ? to_bus(k) : NULL;
	return k ? to_bus(k) : NULL;
}
}
#endif  /*  0  */




/**
/**