PCI hotplug: Change link order of pciehp & acpiphp
authorMatthew Garrett <mjg59@srcf.ucam.org>
Tue, 27 Jan 2009 01:03:35 +0000 (01:03 +0000)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 27 Jan 2009 23:35:51 +0000 (15:35 -0800)
commit71a082efc9fdc12068a3cee6cebb1330b00ebeee
treeb090119f313f99558269e83bdd0e6d143fa345f2
parentbf4162bcf82ebc3258d6bc0ddd6453132abde72d
PCI hotplug: Change link order of pciehp & acpiphp

Some hardware exposes PCIE slots in such a way that they can be claimed
by either the acpiphp or pciehp driver. pciehp is the preferred driver
if the firmware allows the OS to claim control via the _OSC method so
should be loaded first - if it fails to bind (either due to a missing
_OSC method or the firmware refusing to hand off control) then we can
fall back to acpiphp or a vendor-specific driver.

This patch simply changes the link order to ensure that pciehp will be
initialised before acpiphp if both are statically built into the kernel.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/hotplug/Makefile