OSDN Git Service

clk: sunxi-ng: Move SoC driver conditions to dependencies
authorSamuel Holland <samuel@sholland.org>
Sat, 31 Dec 2022 23:14:25 +0000 (17:14 -0600)
committerJernej Skrabec <jernej.skrabec@gmail.com>
Sun, 8 Jan 2023 21:06:10 +0000 (22:06 +0100)
commit0ff347db4c97cc16b4e428dc1db550ba3628f1e2
tree6286118a9ef0b9c935905c6941cbe9065d2427ff
parenta26dc096f683ca27ac5e68703bfd3098b4212abd
clk: sunxi-ng: Move SoC driver conditions to dependencies

Do not duplicate the same expression on the `default` line, so the two
lines do not need to be kept in sync. Drivers stay disabled under
COMPILE_TEST because of the `default ARCH_SUNXI` applied to SUNXI_CCU.

Three drivers had no conditions.
 - SUN6I_RTC_CCU and SUN8I_DE2_CCU are used on current hardware
   regardless of CPU architecture.
 - SUN8I_R_CCU is only used on pre-H6 SoCs, which means no RISCV SoCs.

Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20221231231429.18357-3-samuel@sholland.org
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
drivers/clk/sunxi-ng/Kconfig