summaryrefslogtreecommitdiff
path: root/include/linux/device.h
diff options
context:
space:
mode:
authorHollis Blanchard <hollisb@us.ibm.com>2004-01-19 00:31:36 -0800
committerGreg Kroah-Hartman <greg@kroah.com>2004-01-19 00:31:36 -0800
commit73009dd485707254f4ae4a59f242fa3e796041cb (patch)
tree01c9116900209dac9c011b0c3cf317431d784fc2 /include/linux/device.h
parentb989f180460c5b491b81c9d8227fc31c00c3bbc2 (diff)
[PATCH] Driver Core: add device_find() function
Greg KH wrote: > > How about just adding a device_find() function to the driver core, where > you pass in a name and a type, so that others can use it? Something like this?
Diffstat (limited to 'include/linux/device.h')
-rw-r--r--include/linux/device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index 8f008e19b83f..490096618f63 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -354,6 +354,7 @@ extern int (*platform_notify_remove)(struct device * dev);
*/
extern struct device * get_device(struct device * dev);
extern void put_device(struct device * dev);
+extern struct device *device_find(const char *name, struct bus_type *bus);
/* drivers/base/platform.c */