diff options
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_reset.c')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_reset.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_reset.c b/drivers/infiniband/hw/mthca/mthca_reset.c index 4fa3534ec233..74c6a9426047 100644 --- a/drivers/infiniband/hw/mthca/mthca_reset.c +++ b/drivers/infiniband/hw/mthca/mthca_reset.c | |||
@@ -241,16 +241,16 @@ good: | |||
241 | 241 | ||
242 | if (hca_pcie_cap) { | 242 | if (hca_pcie_cap) { |
243 | devctl = hca_header[(hca_pcie_cap + PCI_EXP_DEVCTL) / 4]; | 243 | devctl = hca_header[(hca_pcie_cap + PCI_EXP_DEVCTL) / 4]; |
244 | if (pci_write_config_word(mdev->pdev, hca_pcie_cap + PCI_EXP_DEVCTL, | 244 | if (pcie_capability_write_word(mdev->pdev, PCI_EXP_DEVCTL, |
245 | devctl)) { | 245 | devctl)) { |
246 | err = -ENODEV; | 246 | err = -ENODEV; |
247 | mthca_err(mdev, "Couldn't restore HCA PCI Express " | 247 | mthca_err(mdev, "Couldn't restore HCA PCI Express " |
248 | "Device Control register, aborting.\n"); | 248 | "Device Control register, aborting.\n"); |
249 | goto out; | 249 | goto out; |
250 | } | 250 | } |
251 | linkctl = hca_header[(hca_pcie_cap + PCI_EXP_LNKCTL) / 4]; | 251 | linkctl = hca_header[(hca_pcie_cap + PCI_EXP_LNKCTL) / 4]; |
252 | if (pci_write_config_word(mdev->pdev, hca_pcie_cap + PCI_EXP_LNKCTL, | 252 | if (pcie_capability_write_word(mdev->pdev, PCI_EXP_LNKCTL, |
253 | linkctl)) { | 253 | linkctl)) { |
254 | err = -ENODEV; | 254 | err = -ENODEV; |
255 | mthca_err(mdev, "Couldn't restore HCA PCI Express " | 255 | mthca_err(mdev, "Couldn't restore HCA PCI Express " |
256 | "Link control register, aborting.\n"); | 256 | "Link control register, aborting.\n"); |