Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

m68k: Let GENERIC_IOMAP depend on HAS_IOPORT

In a future patch HAS_IOPORT=n will disable inb()/outb() and friends at
compile time. With that choosing dynamically between I/O port and MMIO
access via GNERIC_IOMAP will not work. So only select GENERIC_IOMAP when
HAS_IOPORT is selected.

Co-developed-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20240403122851.38808-2-schnelle@linux.ibm.com
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>

authored by

Niklas Schnelle and committed by
Geert Uytterhoeven
40d43887 bd622532

+1 -1
+1 -1
arch/m68k/Kconfig
··· 18 18 select DMA_DIRECT_REMAP if M68K_NONCOHERENT_DMA && !COLDFIRE 19 19 select GENERIC_ATOMIC64 20 20 select GENERIC_CPU_DEVICES 21 - select GENERIC_IOMAP 21 + select GENERIC_IOMAP if HAS_IOPORT 22 22 select GENERIC_IRQ_SHOW 23 23 select GENERIC_LIB_ASHLDI3 24 24 select GENERIC_LIB_ASHRDI3