diff options
author | mochel@digitalimplant.org <mochel@digitalimplant.org> | 2005-03-24 13:48:35 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-20 18:15:16 -0400 |
commit | cb85b6f1cc811ecb9ed4b950206d8941ba710e68 (patch) | |
tree | f017c851e25078c8445ec7045556eb41e364ffdb /drivers | |
parent | 94e7b1c5ff2055571703e38b059afffe17658432 (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')
-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); |