Skip to content

Commit

Permalink
gpio: Fix OF build problem on UM
Browse files Browse the repository at this point in the history
commit 2527ecc upstream.

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: Geert Uytterhoeven <[email protected]>
Reported-by: kbuild test robot <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
linusw authored and gregkh committed Sep 7, 2016
1 parent 1337168 commit 3e7c26d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ config GPIO_DEVRES
config OF_GPIO
def_bool y
depends on OF
depends on HAS_IOMEM

config GPIO_ACPI
def_bool y
Expand Down

0 comments on commit 3e7c26d

Please sign in to comment.