]> git.baikalelectronics.ru Git - kernel.git/commit
alpha: enable GENERIC_PCI_IOMAP unconditionally
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 19 Sep 2021 17:37:00 +0000 (10:37 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 19 Sep 2021 17:37:00 +0000 (10:37 -0700)
commit9dd4d79d97f9a3d1da0b9267b01e230c9b20e316
tree27fee4abae519dcef51c818a9099ebad17b67ecf
parent5c1ac06866649aaf079d074879b232c55a68206d
alpha: enable GENERIC_PCI_IOMAP unconditionally

With the previous commit (5c1ac0686664: "parisc: Declare pci_iounmap()
parisc version only when CONFIG_PCI enabled") we can now enable
GENERIC_PCI_IOMAP unconditionally on alpha, and if PCI is not enabled we
will just get the nice empty helper functions that allow mixed-bus
drivers to build.

Example driver: the old 3com/3c59x.c driver works with either the PCI or
the EISA version of the 3x59x card, but wouldn't build in an EISA-only
configuration because of missing pci_iomap() and pci_iounmap() dummy
wrappers.

Most of the other PCI infrastructure just becomes empty wrappers even
without GENERIC_PCI_IOMAP, and it's not obvious that the pci_iomap
functionality shouldn't do the same, but this works.

Cc: Ulrich Teichert <krypton@ulrich-teichert.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/alpha/Kconfig