aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-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);