power: reset: add HAS_IOPORT dependencies
authorNiklas Schnelle <schnelle@linux.ibm.com>
Tue, 16 May 2023 11:00:23 +0000 (13:00 +0200)
committerSebastian Reichel <sre@kernel.org>
Tue, 16 May 2023 19:58:57 +0000 (21:58 +0200)
In a future patch HAS_IOPORT=n will result in inb()/outb() and friends
not being declared. We thus need to add HAS_IOPORT as dependency for
those drivers using them.

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>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/Kconfig

index 8c87eed..fff07b2 100644 (file)
@@ -158,6 +158,7 @@ config POWER_RESET_OXNAS
 config POWER_RESET_PIIX4_POWEROFF
        tristate "Intel PIIX4 power-off driver"
        depends on PCI
+       depends on HAS_IOPORT
        depends on MIPS || COMPILE_TEST
        help
          This driver supports powering off a system using the Intel PIIX4