summaryrefslogtreecommitdiffstats
path: root/drivers/base/core.c
diff options
context:
space:
mode:
authormochel@digitalimplant.org <mochel@digitalimplant.org>2005-03-24 19:48:35 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2005-06-21 00:15:16 +0200
commitcb85b6f1cc811ecb9ed4b950206d8941ba710e68 (patch)
treef017c851e25078c8445ec7045556eb41e364ffdb /drivers/base/core.c
parent[PATCH] Add a klist to struct device_driver for the devices bound to it. (diff)
downloadlinux-cb85b6f1cc811ecb9ed4b950206d8941ba710e68.tar.xz
linux-cb85b6f1cc811ecb9ed4b950206d8941ba710e68.zip
[PATCH] Remove the unused device_find().
Signed-off-by: Patrick Mochel <mochel@digitalimplant.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base/core.c')
-rw-r--r--drivers/base/core.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c
index bc5bec61a01a..0eb1d424bd1d 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -401,24 +401,6 @@ int device_for_each_child(struct device * dev, void * data,
return error;
}
-/**
- * device_find - locate device on a bus by name.
- * @name: name of the device.
- * @bus: bus to scan for the device.
- *
- * Call kset_find_obj() to iterate over list of devices on
- * a bus to find device by name. Return device if found.
- *
- * Note that kset_find_obj increments device's reference count.
- */
-struct device *device_find(const char *name, struct bus_type *bus)
-{
- struct kobject *k = kset_find_obj(&bus->devices, name);
- if (k)
- return to_dev(k);
- return NULL;
-}
-
int __init devices_init(void)
{
return subsystem_register(&devices_subsys);
@@ -434,7 +416,6 @@ EXPORT_SYMBOL_GPL(device_del);
EXPORT_SYMBOL_GPL(device_unregister);
EXPORT_SYMBOL_GPL(get_device);
EXPORT_SYMBOL_GPL(put_device);
-EXPORT_SYMBOL_GPL(device_find);
EXPORT_SYMBOL_GPL(device_create_file);
EXPORT_SYMBOL_GPL(device_remove_file);