From 33e86005eca4ea9aeaf2203f7981b343d5d3421e Mon Sep 17 00:00:00 2001 From: Patrick Mochel Date: Mon, 6 Jan 2003 09:28:43 -0600 Subject: Implement find_bus() for finding a struct bus_type by name. Simply, pass off to kset_find_obj() to iterate over list of buses and search for bus with certain name. --- include/linux/device.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/linux') diff --git a/include/linux/device.h b/include/linux/device.h index f2e9b50cad58..2076d9c6ae4b 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -82,6 +82,7 @@ extern void bus_unregister(struct bus_type * bus); extern struct bus_type * get_bus(struct bus_type * bus); extern void put_bus(struct bus_type * bus); +extern struct bus_type * find_bus(char * name); /* iterator helpers for buses */ -- cgit v1.2.3