aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-sunxi
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2014-05-26 11:14:57 -0400
committerArnd Bergmann <arnd@arndb.de>2014-05-26 15:27:22 -0400
commite58cf0193c0f268d03d99e5757a0444d88cb5134 (patch)
treec615390db16daec85713a94bbc59fd115d23a2b4 /arch/arm/mach-sunxi
parente1dc566f43fe2540ad085b1410cc130a06f69557 (diff)
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 <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-sunxi')
-rw-r--r--arch/arm/mach-sunxi/sunxi.c3
1 files changed, 2 insertions, 1 deletions
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);
35static void __init sun6i_timer_init(void) 35static void __init sun6i_timer_init(void)
36{ 36{
37 of_clk_init(NULL); 37 of_clk_init(NULL);
38 sun6i_reset_init(); 38 if (IS_ENABLED(CONFIG_RESET_CONTROLLER))
39 sun6i_reset_init();
39 clocksource_of_init(); 40 clocksource_of_init();
40} 41}
41 42