drm/radeon: Prefer pcie_capability_read_word()
authorFrederick Lawler <fred@fredlawl.com>
Mon, 18 Nov 2019 00:35:13 +0000 (18:35 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 21 Nov 2019 17:15:58 +0000 (11:15 -0600)
commit3d581b11e34a92350983e5d3ecf469b5c677e295
tree1905cb3694d308c3232064da3bc506ab3c3ed367
parentca56f99c18cafdeae6961ce9d87fc978506152ca
drm/radeon: Prefer pcie_capability_read_word()

Commit 8c0d3a02c130 ("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().

Link: https://lore.kernel.org/r/20191118003513.10852-1-fred@fredlawl.com
Signed-off-by: Frederick Lawler <fred@fredlawl.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/cik.c
drivers/gpu/drm/radeon/si.c