PCI hotplug: use pci_is_pcie()
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Wed, 11 Nov 2009 05:38:16 +0000 (14:38 +0900)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 24 Nov 2009 23:25:18 +0000 (15:25 -0800)
Change for PCI hotplug to use pci_is_pcie() instead of checking
pci_dev->is_pcie.

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/hotplug/pcihp_slot.c

index 7f61afe..80b461c 100644 (file)
@@ -43,7 +43,7 @@ static void program_hpp_type0(struct pci_dev *dev, struct hpp_type0 *hpp)
                 * Perhaps we *should* use default settings for PCIe, but
                 * pciehp didn't, so we won't either.
                 */
-               if (dev->is_pcie)
+               if (pci_is_pcie(dev))
                        return;
                dev_info(&dev->dev, "using default PCI settings\n");
                hpp = &pci_default_type0;