Driver core: add bus_sort_breadthfirst() function
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Aug 2008 16:00:57 +0000 (11:00 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 16 Oct 2008 16:24:52 +0000 (09:24 -0700)
commit99178b036c97293a65004ff5ec5cff9f833aaecd
treec83ac6855710038ad9846f79b952b7fdcca528f8
parent26853ab6f9a4c482be4b638477335704724d4854
Driver core: add bus_sort_breadthfirst() function

The PCI core wants to reorder the devices in the bus list.  So move this
functionality out of the pci core and into the driver core so that
anyone else can also do this if needed.  This also lets us change how
struct device is attached to drivers in the future without messing with
the PCI core.

Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/bus.c
drivers/pci/probe.c
include/linux/device.h