Skip to contentSkip to conversation

drivers: base: remove unused function find_bus()

PATCH New Joe Pater 1 participant 1 message Jan 3, 2021 Driver core

lore
Share & tools
lore

Joe Pater

author
#0 lore raw

PATCH 1/1 drivers: base: remove unused function find_bus()

find_bus() isn't doing anyone any good sitting in a '#if 0' (as it's been doing since 2006!).

---
 drivers/base/bus.c | 17 -----------------
 1 file changed, 17 deletions(-)
drivers/base/bus.c +0 -17
index a9c23ecebc7c..b48ad519c34e 100644
@@ -729,23 +729,6 @@ int device_reprobe(struct device *dev)
 }
 EXPORT_SYMBOL_GPL(device_reprobe);
 
-/**
- * find_bus - locate bus by name.
- * @name: name of bus.
- *
- * Call kset_find_obj() to iterate over list of buses to
- * find a bus by name. Return bus if found.
- *
- * 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_kset, name);
-	return k ? to_bus(k) : NULL;
-}
-#endif  /*  0  */
-
 static int bus_add_groups(struct bus_type *bus,
 			  const struct attribute_group **groups)
 {

base-commit: 3516bd729358a2a9b090c1905bd2a3fa926e24c6
prerequisite-patch-id: 87366344c3e939f5a7942e66e16851e56e5cca38

Signature · 1 line
2.29.2