diff options
author | Krzysztof Wilczyński <[email protected]> | 2021-07-13 10:24:36 +0000 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2021-07-16 16:04:13 -0500 |
commit | a67462fc9de8b958d6a2c2c34d0195733a8c61a6 (patch) | |
tree | d1ee5e7ada63f77427e1153127b5afdd25468f38 /drivers/pci/controller/pcie-rockchip-host.c | |
parent | e73f0f0ee7541171d89f2e2491130c7771ba58d3 (diff) |
PCI: Refactor pci_ioremap_bar() and pci_ioremap_wc_bar()
pci_ioremap_bar() and pci_ioremap_wc_bar() shared similar implementations
but differed in unimportant ways. Align them by adding a shared helper,
__pci_ioremap_resource().
Upgrade warning message to error level, since it indicates a driver defect.
Remove WARN_ON() from WC path in favor of the error message.
[bhelgaas: commit log, use ioremap() since pci_iomap_range() doesn't add
anything]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Krzysztof Wilczyński <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'drivers/pci/controller/pcie-rockchip-host.c')
0 files changed, 0 insertions, 0 deletions