diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2016-08-16 09:58:25 +0200 |
---|---|---|
committer | Sasha Levin <alexander.levin@verizon.com> | 2016-08-31 22:05:44 -0400 |
commit | 183e633e33201530453c84b5affd01df8c46171b (patch) | |
tree | 62331ba50e91b45e314b86495a157a2bbe079ed2 /drivers | |
parent | 3dd120f43407cb270b40cfe931430517a604c914 (diff) | |
download | lwn-183e633e33201530453c84b5affd01df8c46171b.tar.gz lwn-183e633e33201530453c84b5affd01df8c46171b.zip |
gpio: Fix OF build problem on UM
[ Upstream commit 2527ecc9195e9c66252af24c4689e8a67cd4ccb9 ]
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: stable@vger.kernel.org
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpio/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 0959ca9b6b27..929b680d4b29 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -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 |