summaryrefslogtreecommitdiff
path: root/include/linux/pci.h
diff options
context:
space:
mode:
authorKrzysztof Wilczyński <kw@linux.com>2021-07-13 10:24:36 +0000
committerBjorn Helgaas <bhelgaas@google.com>2021-07-16 16:04:13 -0500
commita67462fc9de8b958d6a2c2c34d0195733a8c61a6 (patch)
treed1ee5e7ada63f77427e1153127b5afdd25468f38 /include/linux/pci.h
parente73f0f0ee7541171d89f2e2491130c7771ba58d3 (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/20210713102436.304693-1-kw@linux.com Signed-off-by: Krzysztof Wilczyński <kw@linux.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/linux/pci.h')
0 files changed, 0 insertions, 0 deletions