diff mbox

gpio: zx: depend on ARCH_ZX

Message ID 20161106182931.20381-1-pbrobinson@gmail.com
State New
Headers show

Commit Message

Peter Robinson Nov. 6, 2016, 6:29 p.m. UTC
Set GPIO_ZX to depend on ARCH_ZX as it's SOC specific.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
---
 drivers/gpio/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Masahiro Yamada Nov. 7, 2016, 2:31 a.m. UTC | #1
2016-11-07 3:29 GMT+09:00 Peter Robinson <pbrobinson@gmail.com>:
> Set GPIO_ZX to depend on ARCH_ZX as it's SOC specific.
>
> Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
> ---
>  drivers/gpio/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
> index d011cb8..2c458c8 100644
> --- a/drivers/gpio/Kconfig
> +++ b/drivers/gpio/Kconfig
> @@ -524,6 +524,7 @@ config GPIO_ZYNQ
>
>  config GPIO_ZX
>         bool "ZTE ZX GPIO support"
> +       depends on ARCH_ZX
>         select GPIOLIB_IRQCHIP
>         help
>           Say yes here to support the GPIO device on ZTE ZX SoCs.



Maybe

      depends on ARCH_ZX || COMPILE_TEST

to keep the COMPILE_TEST'ability?

Likewise for the other two patches.
diff mbox

Patch

diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index d011cb8..2c458c8 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -524,6 +524,7 @@  config GPIO_ZYNQ
 
 config GPIO_ZX
 	bool "ZTE ZX GPIO support"
+	depends on ARCH_ZX
 	select GPIOLIB_IRQCHIP
 	help
 	  Say yes here to support the GPIO device on ZTE ZX SoCs.