driver core: add way to get to bus device klist
This allows an easier way to get to the device klist associated with a struct bus_type (you have three to choose from...) This will make it easier to move these fields to be dynamic in a future patch. The only user of this is the PCI core which horribly abuses this interface to rearrange the order of the pci devices. This should be done using the existing bus device walking functions, but that's left for future patches. Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
0fed80f7a6
commit
b249072ee6
3 changed files with 14 additions and 4 deletions
|
@ -118,6 +118,7 @@ extern int bus_unregister_notifier(struct bus_type *bus,
|
|||
unbound */
|
||||
|
||||
extern struct kset *bus_get_kset(struct bus_type *bus);
|
||||
extern struct klist *bus_get_device_klist(struct bus_type *bus);
|
||||
|
||||
struct device_driver {
|
||||
const char * name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue