mtip32xx: prefer pcie_capability_read_word()
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 26 Jan 2021 20:04:33 +0000 (14:04 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Jan 2021 20:09:39 +0000 (13:09 -0700)
commit2126979183148a1bbe8aebe67079856c15ae1763
treef0b343e8ee144e937baeb805b20e3c26faec3e4d
parent416c05477772c147190d6b2371254510c81a4a04
mtip32xx: prefer pcie_capability_read_word()

Replace pci_read_config_word() with pcie_capability_read_word().

pcie_capability_read_word() takes care of a few special cases when reading
the PCIe capability.  See 8c0d3a02c130 ("PCI: Add accessors for PCI Express
Capability").

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/mtip32xx/mtip32xx.c