clk: starfive: Fix RESET_STARFIVE_JH7110 can't be selected in a specified case
authorHal Feng <hal.feng@starfivetech.com>
Tue, 18 Apr 2023 12:37:56 +0000 (20:37 +0800)
committerStephen Boyd <sboyd@kernel.org>
Wed, 3 May 2023 01:34:49 +0000 (18:34 -0700)
commit31c6ed4e89187beef8fe2f979c8881ca94839427
treef6cd94ca36dc293c977b15dbbb7f29792c04f2ca
parent5c667d5a5a3ec16609229dddf25a46654186b52b
clk: starfive: Fix RESET_STARFIVE_JH7110 can't be selected in a specified case

When (ARCH_STARFIVE [=n] && COMPILE_TEST [=y] && RESET_CONTROLLER [=n]),
RESET_STARFIVE_JH7110 can't be selected by CLK_STARFIVE_JH7110_SYS
and CLK_STARFIVE_JH7110_AON.

Add a condition `if RESET_CONTROLLER` to fix it. Also, delete redundant
selected options of CLK_STARFIVE_JH7110_AON because these options are
already selected by the dependency.

Fixes: edab7204afe5 ("clk: starfive: Add StarFive JH7110 system clock driver")
Fixes: b2ab3c94f41f ("clk: starfive: Add StarFive JH7110 always-on clock driver")
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
Link: https://lore.kernel.org/r/20230418123756.62495-2-hal.feng@starfivetech.com
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/starfive/Kconfig