From: Alex Chiang Date: Thu, 23 Jul 2009 23:03:05 +0000 (-0600) Subject: PCI Hotplug: acpiphp: get pci_bus from acpi handle correctly X-Git-Tag: v2.6.32-rc1~670^2~68 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5228a828ee044834d78abdf25306bf46b19dcc4d;p=pandora-kernel.git PCI Hotplug: acpiphp: get pci_bus from acpi handle correctly We cannot simply call acpi_get_pci_dev() on any random ACPI handle and hope that it works, because a PCI root bridge may not have an associated struct pci_dev. This is allowed per the PCI specification, and is referred to as a non-materialized bridge. So, depending on the type of PCI bridge that the handle points to, use the appropriate interface to return the struct pci_bus correctly. Reviewed-by: Bjorn Helgaas Signed-off-by: Alex Chiang Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed