diff options
| author | Geert Uytterhoeven <geert+renesas@glider.be> | 2021-02-08 15:51:53 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-02-17 11:02:20 +0100 |
| commit | e072d454faa45847a1544b47e88a1377a36ac720 (patch) | |
| tree | 910a5aa49688866790de466e14cf191998d4b987 /drivers/gpio | |
| parent | 039e0f627397c0de67438a0f8e55f459ddc7900c (diff) | |
| download | kernel_replicant_linux-e072d454faa45847a1544b47e88a1377a36ac720.tar.gz kernel_replicant_linux-e072d454faa45847a1544b47e88a1377a36ac720.tar.bz2 kernel_replicant_linux-e072d454faa45847a1544b47e88a1377a36ac720.zip | |
gpio: mxs: GPIO_MXS should not default to y unconditionally
commit 97c6e28d388a5000d780d2a63c32f422827f5aa3 upstream.
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: 6876ca311bfca5d7 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpio')
| -rw-r--r-- | drivers/gpio/Kconfig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index f20ac3d69424..14751c7ccd1f 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -428,8 +428,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 |
