diff options
Diffstat (limited to 'drivers/net/niu.c')
-rw-r--r-- | drivers/net/niu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/niu.c b/drivers/net/niu.c index 1c7b790217f9..cd6c2317e29e 100644 --- a/drivers/net/niu.c +++ b/drivers/net/niu.c | |||
@@ -9797,7 +9797,7 @@ static int __devinit niu_pci_init_one(struct pci_dev *pdev, | |||
9797 | goto err_out_disable_pdev; | 9797 | goto err_out_disable_pdev; |
9798 | } | 9798 | } |
9799 | 9799 | ||
9800 | pos = pci_find_capability(pdev, PCI_CAP_ID_EXP); | 9800 | pos = pci_pcie_cap(pdev); |
9801 | if (pos <= 0) { | 9801 | if (pos <= 0) { |
9802 | dev_err(&pdev->dev, "Cannot find PCI Express capability, aborting\n"); | 9802 | dev_err(&pdev->dev, "Cannot find PCI Express capability, aborting\n"); |
9803 | goto err_out_free_res; | 9803 | goto err_out_free_res; |