Skip to content

Commit 2527ecc

Browse files
committed
gpio: Fix OF build problem on UM
The UserMode (UM) Linux build was failing in gpiolib-of as it requires ioremap()/iounmap() to exist, which is absent from UM. The non-existence of IO memory is negatively defined as CONFIG_NO_IOMEM which means we need to depend on HAS_IOMEM. Cc: [email protected] Cc: Geert Uytterhoeven <[email protected]> Reported-by: kbuild test robot <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent 6f4deb1 commit 2527ecc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpio/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ config GPIO_DEVRES
5050
config OF_GPIO
5151
def_bool y
5252
depends on OF
53+
depends on HAS_IOMEM
5354

5455
config GPIO_ACPI
5556
def_bool y

0 commit comments

Comments
 (0)