asm-generic/io.h: implement pci_remap_cfgspace using ioremap_np
authorHector Martin <marcan@marcan.st>
Thu, 25 Mar 2021 13:50:19 +0000 (22:50 +0900)
committerHector Martin <marcan@marcan.st>
Thu, 8 Apr 2021 11:18:38 +0000 (20:18 +0900)
commitb10eb2d50911f98a8f1cacf00b1b677339593f4c
tree41560ebf96bed97c67061c8b00addc058ca78f48
parent9a63ae85025526a6a5f432cfe41b6df649798aa4
asm-generic/io.h: implement pci_remap_cfgspace using ioremap_np

Now that we have ioremap_np(), we can make pci_remap_cfgspace() default
to it, falling back to ioremap() on platforms where it is not available.

Remove the arm64 implementation, since that is now redundant. Future
cleanups should be able to do the same for other arches, and eventually
make the generic pci_remap_cfgspace() unconditional.

Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Hector Martin <marcan@marcan.st>
arch/arm64/include/asm/io.h
include/linux/io.h