From: Arnd Bergmann Date: Mon, 26 May 2014 15:14:57 +0000 (+0200) Subject: ARM: sunxi: allow building without reset controller X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e58cf0193c0f268d03d99e5757a0444d88cb5134;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git ARM: sunxi: allow building without reset controller The sunxi reset controller code is only used with sun6i (a31). After the platform has been split up into per-soc options, it's now possible to build it without the reset controller code, so the base platform init must not call into the reset driver if that is turned off at compile time. Signed-off-by: Arnd Bergmann --- diff --git a/arch/arm/mach-sunxi/sunxi.c b/arch/arm/mach-sunxi/sunxi.c index ff2e6a404dab..3f9587bb51f6 100644 --- a/arch/arm/mach-sunxi/sunxi.c +++ b/arch/arm/mach-sunxi/sunxi.c @@ -35,7 +35,8 @@ extern void __init sun6i_reset_init(void); static void __init sun6i_timer_init(void) { of_clk_init(NULL); - sun6i_reset_init(); + if (IS_ENABLED(CONFIG_RESET_CONTROLLER)) + sun6i_reset_init(); clocksource_of_init(); }