diff options
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/core.c | 19 |
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 | */ | ||
414 | struct 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 | |||
422 | int __init devices_init(void) | 404 | int __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); | |||
434 | EXPORT_SYMBOL_GPL(device_unregister); | 416 | EXPORT_SYMBOL_GPL(device_unregister); |
435 | EXPORT_SYMBOL_GPL(get_device); | 417 | EXPORT_SYMBOL_GPL(get_device); |
436 | EXPORT_SYMBOL_GPL(put_device); | 418 | EXPORT_SYMBOL_GPL(put_device); |
437 | EXPORT_SYMBOL_GPL(device_find); | ||
438 | 419 | ||
439 | EXPORT_SYMBOL_GPL(device_create_file); | 420 | EXPORT_SYMBOL_GPL(device_create_file); |
440 | EXPORT_SYMBOL_GPL(device_remove_file); | 421 | EXPORT_SYMBOL_GPL(device_remove_file); |