diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2007-11-01 19:41:16 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-01-24 20:40:33 -0800 |
commit | b249072ee6897fe4f8d461c7bb4b926223263c28 (patch) | |
tree | a6dde5703458677302516145c47f308e52cda189 /include/linux/device.h | |
parent | 0fed80f7a63abd7168907267af69ee31f6bcf301 (diff) | |
download | kernel_samsung_smdk4412-b249072ee6897fe4f8d461c7bb4b926223263c28.zip kernel_samsung_smdk4412-b249072ee6897fe4f8d461c7bb4b926223263c28.tar.gz kernel_samsung_smdk4412-b249072ee6897fe4f8d461c7bb4b926223263c28.tar.bz2 |
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>
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 3cc13c3..62e695b 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -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; |