From: Geert Uytterhoeven Date: Thu, 13 Feb 2020 08:38:04 +0000 (+0100) Subject: powerpc/time: Replace by X-Git-Tag: v5.7-rc1~35^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=60083063b755e29685902609e024ecd0c4a1a7d9;p=thirdparty%2Fkernel%2Flinux.git powerpc/time: Replace by The PowerPC time code is not a clock provider, and just needs to call of_clk_init(). Hence it can include instead of . Remove the #ifdef protecting the of_clk_init() call, as a stub is available for the !CONFIG_COMMON_CLK case. Signed-off-by: Geert Uytterhoeven Reviewed-by: Stephen Boyd Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20200213083804.24315-1-geert+renesas@glider.be --- diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c index bda9cb4a0a5f6..2d9d3a3c61d6d 100644 --- a/arch/powerpc/kernel/time.c +++ b/arch/powerpc/kernel/time.c @@ -50,7 +50,7 @@ #include #include #include -#include +#include #include #include #include @@ -1149,9 +1149,7 @@ void __init time_init(void) init_decrementer_clockevent(); tick_setup_hrtimer_broadcast(); -#ifdef CONFIG_COMMON_CLK of_clk_init(NULL); -#endif } /*