]> git.ipfire.org Git - people/ms/u-boot.git/commit
pci: xilinx: Use pci_generic_mmap_{read, write}_config()
authorTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
Tue, 19 Sep 2017 20:18:04 +0000 (23:18 +0300)
committerTom Rini <trini@konsulko.com>
Fri, 6 Oct 2017 15:27:41 +0000 (11:27 -0400)
commit75e3feac1bd707f205705d8e8d233db4c2e752fd
tree5cfcff23d9b8c4a97e81d6b2282847153a59fcc4
parentbadb99220a42f88bc823c884e487657bfe734a4d
pci: xilinx: Use pci_generic_mmap_{read, write}_config()

Use the new helper function to avoid boilerplate in the driver.

Note that this changes __raw_writel et al. to writel. AFAICT this is
no problem because:

- The Linux driver for the same hardware uses the non-__raw variants as
  well (via pci_generic_config_write()).
- This driver seems to be used only on MIPS so far, where the __raw and
  non-__raw accessors are the same.

Signed-off-by: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/pci/pcie_xilinx.c