aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authormochel@digitalimplant.org <mochel@digitalimplant.org>2005-03-24 13:48:35 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2005-06-20 18:15:16 -0400
commitcb85b6f1cc811ecb9ed4b950206d8941ba710e68 (patch)
treef017c851e25078c8445ec7045556eb41e364ffdb /drivers/base
parent94e7b1c5ff2055571703e38b059afffe17658432 (diff)
[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')
-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,
401 return error; 401 return error;
402} 402}
403 403
404/**
405 * device_find - locate device on a bus by name.
406 * @name: name of the device.
407 * @bus: bus to scan for the device.
408 *
409 * Call kset_find_obj() to iterate over list of devices on
410 * a bus to find device by name. Return device if found.
411 *
412 * Note that kset_find_obj increments device's reference count.
413 */
414struct device *device_find(const char *name, struct bus_type *bus)
415{
416 struct kobject *k = kset_find_obj(&bus->devices, name);
417 if (k)
418 return to_dev(k);
419 return NULL;
420}
421
422int __init devices_init(void) 404int __init devices_init(void)
423{ 405{
424 return subsystem_register(&devices_subsys); 406 return subsystem_register(&devices_subsys);
@@ -434,7 +416,6 @@ EXPORT_SYMBOL_GPL(device_del);
434EXPORT_SYMBOL_GPL(device_unregister); 416EXPORT_SYMBOL_GPL(device_unregister);
435EXPORT_SYMBOL_GPL(get_device); 417EXPORT_SYMBOL_GPL(get_device);
436EXPORT_SYMBOL_GPL(put_device); 418EXPORT_SYMBOL_GPL(put_device);
437EXPORT_SYMBOL_GPL(device_find);
438 419
439EXPORT_SYMBOL_GPL(device_create_file); 420EXPORT_SYMBOL_GPL(device_create_file);
440EXPORT_SYMBOL_GPL(device_remove_file); 421EXPORT_SYMBOL_GPL(device_remove_file);