]> git.baikalelectronics.ru Git - kernel.git/commitdiff
soc: rockchip: ROCKCHIP_GRF should not default to y, unconditionally
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 8 Feb 2021 14:38:55 +0000 (15:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Sep 2021 07:47:30 +0000 (09:47 +0200)
[ Upstream commit 2a1c55d4762dd34a8b0f2e36fb01b7b16b60735b ]

Merely enabling CONFIG_COMPILE_TEST should not enable additional code.
To fix this, restrict the automatic enabling of ROCKCHIP_GRF to
ARCH_ROCKCHIP, and ask the user in case of compile-testing.

Fixes: afc10927908f2c28 ("soc: rockchip: add driver handling grf setup")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20210208143855.418374-1-geert+renesas@glider.be
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soc/rockchip/Kconfig

index b71b73bf5fc5c53413b35b6d5376314155986f5f..785990720479c7b29918db2d64c93182d54cc7d8 100644 (file)
@@ -6,8 +6,8 @@ if ARCH_ROCKCHIP || COMPILE_TEST
 #
 
 config ROCKCHIP_GRF
-       bool
-       default y
+       bool "Rockchip General Register Files support" if COMPILE_TEST
+       default y if ARCH_ROCKCHIP
        help
          The General Register Files are a central component providing
          special additional settings registers for a lot of soc-components.