pinctrl: ocelot: Add dependency on HAS_IOMEM

Message ID 20181222101629.19879-1-linus.walleij@linaro.org
State New
Headers show
Series
  • pinctrl: ocelot: Add dependency on HAS_IOMEM
Related show

Commit Message

Linus Walleij Dec. 22, 2018, 10:16 a.m.
As usual the build fails on UM Linux because that thing does
not have IOMEM. Depend on HAS_IOMEM solves the build problem.

Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/pinctrl/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Alexandre Belloni Dec. 22, 2018, 9:03 p.m. | #1
On 22/12/2018 11:16:29+0100, Linus Walleij wrote:
> As usual the build fails on UM Linux because that thing does
> not have IOMEM. Depend on HAS_IOMEM solves the build problem.
> 
> Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

I was going to send the exact same patch anyway :)

> ---
>  drivers/pinctrl/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig
> index a80fca28dc48..2764d713fea8 100644
> --- a/drivers/pinctrl/Kconfig
> +++ b/drivers/pinctrl/Kconfig
> @@ -352,6 +352,7 @@ config PINCTRL_RK805
>  config PINCTRL_OCELOT
>  	bool "Pinctrl driver for the Microsemi Ocelot and Jaguar2 SoCs"
>  	depends on OF
> +	depends on HAS_IOMEM
>  	select GPIOLIB
>  	select GPIOLIB_IRQCHIP
>  	select GENERIC_PINCONF
> -- 
> 2.19.2
>

Patch

diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig
index a80fca28dc48..2764d713fea8 100644
--- a/drivers/pinctrl/Kconfig
+++ b/drivers/pinctrl/Kconfig
@@ -352,6 +352,7 @@  config PINCTRL_RK805
 config PINCTRL_OCELOT
 	bool "Pinctrl driver for the Microsemi Ocelot and Jaguar2 SoCs"
 	depends on OF
+	depends on HAS_IOMEM
 	select GPIOLIB
 	select GPIOLIB_IRQCHIP
 	select GENERIC_PINCONF