rtlwifi: Use pci_pcie_cap()
authorHauke Mehrtens <hauke@hauke-m.de>
Tue, 21 Dec 2010 01:01:56 +0000 (02:01 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 Dec 2010 20:43:27 +0000 (15:43 -0500)
Use function pci_pcie_cap() instead of accessing struct member directly.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Tested-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/pci.c

index bf3b574..353e203 100644 (file)
@@ -1608,7 +1608,7 @@ static bool _rtl_pci_find_adapter(struct pci_dev *pdev,
                pcipriv->ndis_adapter.pcibridge_funcnum =
                    PCI_FUNC(bridge_pdev->devfn);
                pcipriv->ndis_adapter.pcibridge_pciehdr_offset =
-                   bridge_pdev->pcie_cap;
+                   pci_pcie_cap(bridge_pdev);
                pcipriv->ndis_adapter.pcicfg_addrport =
                    (pcipriv->ndis_adapter.pcibridge_busnum << 16) |
                    (pcipriv->ndis_adapter.pcibridge_devnum << 11) |