Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

soc: rockchip: ROCKCHIP_GRF should not default to y, unconditionally

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: 4c58063d4258f6be ("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>

authored by

Geert Uytterhoeven and committed by
Heiko Stuebner
2a1c55d4 e73f0f0e

+2 -2
+2 -2
drivers/soc/rockchip/Kconfig
··· 6 6 # 7 7 8 8 config ROCKCHIP_GRF 9 - bool 10 - default y 9 + bool "Rockchip General Register Files support" if COMPILE_TEST 10 + default y if ARCH_ROCKCHIP 11 11 help 12 12 The General Register Files are a central component providing 13 13 special additional settings registers for a lot of soc-components.