diff mbox series

pinctrl: Add some depends on HAS_IOMEM

Message ID 20171113100739.4354-1-linus.walleij@linaro.org
State New
Headers show
Series pinctrl: Add some depends on HAS_IOMEM | expand

Commit Message

Linus Walleij Nov. 13, 2017, 10:07 a.m. UTC
Some compilation fallout from UM Linux (which does not have
IOMEM) makes it necessary to depend on HAS_IOMEM for drivers
that doesn't have other factors restricting their selection.

Cc: Phil Reid <preid@electromag.com.au>
Cc: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Reported-by: R. Daneel Olivaw <kbuild-all@01.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/pinctrl/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

Comments

Sebastian Reichel Nov. 13, 2017, 11:06 a.m. UTC | #1
Hi,

On Mon, Nov 13, 2017 at 11:07:39AM +0100, Linus Walleij wrote:
> Some compilation fallout from UM Linux (which does not have
> IOMEM) makes it necessary to depend on HAS_IOMEM for drivers
> that doesn't have other factors restricting their selection.
> 
> Cc: Phil Reid <preid@electromag.com.au>
> Cc: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
> Reported-by: R. Daneel Olivaw <kbuild-all@01.org>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---

Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>

-- Sebastian

>  drivers/pinctrl/Kconfig | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig
> index 92bf1a06162c..f5ca67caac41 100644
> --- a/drivers/pinctrl/Kconfig
> +++ b/drivers/pinctrl/Kconfig
> @@ -98,6 +98,7 @@ config PINCTRL_AT91PIO4
>  
>  config PINCTRL_AMD
>  	tristate "AMD GPIO pin control"
> +	depends on HAS_IOMEM
>  	select GPIOLIB
>  	select GPIOLIB_IRQCHIP
>  	select PINCONF
> @@ -201,6 +202,7 @@ config PINCTRL_RZA1
>  config PINCTRL_SINGLE
>  	tristate "One-register-per-pin type device tree based pinctrl driver"
>  	depends on OF
> +	depends on HAS_IOMEM
>  	select GENERIC_PINCTRL_GROUPS
>  	select GENERIC_PINMUX_FUNCTIONS
>  	select GENERIC_PINCONF
> -- 
> 2.13.6
>
diff mbox series

Patch

diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig
index 92bf1a06162c..f5ca67caac41 100644
--- a/drivers/pinctrl/Kconfig
+++ b/drivers/pinctrl/Kconfig
@@ -98,6 +98,7 @@  config PINCTRL_AT91PIO4
 
 config PINCTRL_AMD
 	tristate "AMD GPIO pin control"
+	depends on HAS_IOMEM
 	select GPIOLIB
 	select GPIOLIB_IRQCHIP
 	select PINCONF
@@ -201,6 +202,7 @@  config PINCTRL_RZA1
 config PINCTRL_SINGLE
 	tristate "One-register-per-pin type device tree based pinctrl driver"
 	depends on OF
+	depends on HAS_IOMEM
 	select GENERIC_PINCTRL_GROUPS
 	select GENERIC_PINMUX_FUNCTIONS
 	select GENERIC_PINCONF