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

Commit d2869a3f820b ("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>
Acked-by: Michal KalderonĀ <michal.kalderon@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_rdma.c