diff mbox

[6/12] PCI hotplug: use pci_pcie_cap()

Message ID 4AFA4CD7.5050301@jp.fujitsu.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Kenji Kaneshige Nov. 11, 2009, 5:34 a.m. UTC
None
diff mbox

Patch

Index: 20091110/drivers/pci/hotplug/pcihp_slot.c
===================================================================
--- 20091110.orig/drivers/pci/hotplug/pcihp_slot.c
+++ 20091110/drivers/pci/hotplug/pcihp_slot.c
@@ -102,7 +102,7 @@  static void program_hpp_type2(struct pci
 		return;
 
 	/* Find PCI Express capability */
-	pos = pci_find_capability(dev, PCI_CAP_ID_EXP);
+	pos = pci_pcie_cap(dev);
 	if (!pos)
 		return;