diff options
| author | Patrick Mochel <mochel@osdl.org> | 2003-01-06 09:28:43 -0600 |
|---|---|---|
| committer | Patrick Mochel <mochel@osdl.org> | 2003-01-06 09:28:43 -0600 |
| commit | 33e86005eca4ea9aeaf2203f7981b343d5d3421e (patch) | |
| tree | 123f878c7a968451c937b8a506fd495d8ce7eb43 /include/linux | |
| parent | 7dd6e94ed51400dd897b8bf3f791baaa61cbbf22 (diff) | |
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.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/device.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 */ |
