Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2351
b: refs/heads/master
c: cb85b6f
h: refs/heads/master
i:
  2349: 256c812
  2347: 8b135b3
  2343: 7510d90
  2335: 3e4d88c
v: v3
  • Loading branch information
mochel@digitalimplant.org authored and Greg Kroah-Hartman committed Jun 20, 2005
1 parent 53e51a1 commit adddd58
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 94e7b1c5ff2055571703e38b059afffe17658432
refs/heads/master: cb85b6f1cc811ecb9ed4b950206d8941ba710e68
19 changes: 0 additions & 19 deletions trunk/drivers/base/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
1 change: 0 additions & 1 deletion trunk/include/linux/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,6 @@ extern int (*platform_notify_remove)(struct device * dev);
*/
extern struct device * get_device(struct device * dev);
extern void put_device(struct device * dev);
extern struct device *device_find(const char *name, struct bus_type *bus);


/* drivers/base/platform.c */
Expand Down

0 comments on commit adddd58

Please sign in to comment.