Skip to content

Commit

Permalink
gpio: mxs: GPIO_MXS should not default to y unconditionally
Browse files Browse the repository at this point in the history
Merely enabling CONFIG_COMPILE_TEST should not enable additional code.
To fix this, restrict the automatic enabling of GPIO_MXS to ARCH_MXS,
and ask the user in case of compile-testing.

Fixes: 6876ca3 ("gpio: mxs: add COMPILE_TEST support for GPIO_MXS")
Cc: <stable@vger.kernel.org>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
  • Loading branch information
Geert Uytterhoeven authored and Bartosz Golaszewski committed Feb 10, 2021
1 parent 92bf226 commit 97c6e28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,9 @@ config GPIO_MXC
select GENERIC_IRQ_CHIP

config GPIO_MXS
def_bool y
bool "Freescale MXS GPIO support" if COMPILE_TEST
depends on ARCH_MXS || COMPILE_TEST
default y if ARCH_MXS
select GPIO_GENERIC
select GENERIC_IRQ_CHIP

Expand Down

0 comments on commit 97c6e28

Please sign in to comment.