]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: Prefer pcie_capability_read_word()
authorFrederick Lawler <fred@fredlawl.com>
Thu, 18 Jul 2019 02:07:36 +0000 (21:07 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 21 Jul 2019 20:29:47 +0000 (13:29 -0700)
commit157905797ab0a0975b041c847e01e501c35970a9
treea2e2d21761bf314d054b4a01aca46089d3522857
parent64a9a364f3c5e8df7424dd3f7624b3ff5cdd672a
cxgb4: Prefer pcie_capability_read_word()

Commit 474ed167ebbe ("PCI: Add accessors for PCI Express Capability")
added accessors for the PCI Express Capability so that drivers didn't
need to be aware of differences between v1 and v2 of the PCI
Express Capability.

Replace pci_read_config_word() and pci_write_config_word() calls with
pcie_capability_read_word() and pcie_capability_write_word().

Signed-off-by: Frederick Lawler <fred@fredlawl.com>
Reviewed-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c