]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
gpio: AMD8111 and TQMX86 require HAS_IOPORT_MAP
authorJohannes Berg <johannes.berg@intel.com>
Fri, 25 Jun 2021 08:37:34 +0000 (10:37 +0200)
committerSasha Levin <sashal@kernel.org>
Wed, 7 Jul 2021 12:22:58 +0000 (08:22 -0400)
[ Upstream commit c6414e1a2bd26b0071e2b9d6034621f705dfd4c0 ]

Both of these drivers use ioport_map(), so they need to
depend on HAS_IOPORT_MAP. Otherwise, they cannot be built
even with COMPILE_TEST on architectures without an ioport
implementation, such as ARCH=um.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpio/Kconfig

index f9263426af03097654aad7744a83ec858dc14fe9..ae414045a7506ebf78e3e0a9a6ad738ee7f83be5 100644 (file)
@@ -1232,6 +1232,7 @@ config GPIO_TPS68470
 config GPIO_TQMX86
        tristate "TQ-Systems QTMX86 GPIO"
        depends on MFD_TQMX86 || COMPILE_TEST
+       depends on HAS_IOPORT_MAP
        select GPIOLIB_IRQCHIP
        help
          This driver supports GPIO on the TQMX86 IO controller.
@@ -1299,6 +1300,7 @@ menu "PCI GPIO expanders"
 config GPIO_AMD8111
        tristate "AMD 8111 GPIO driver"
        depends on X86 || COMPILE_TEST
+       depends on HAS_IOPORT_MAP
        help
          The AMD 8111 south bridge contains 32 GPIO pins which can be used.