* [PATCH] ARM: sunxi: allow building without reset controller
@ 2014-05-26 15:19 Arnd Bergmann
2014-05-27 8:40 ` Maxime Ripard
0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2014-05-26 15:19 UTC (permalink / raw)
To: linux-arm-kernel
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>
diff --git a/arch/arm/mach-sunxi/sunxi.c b/arch/arm/mach-sunxi/sunxi.c
index ff2e6a4..3f9587b 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();
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] ARM: sunxi: allow building without reset controller
2014-05-26 15:19 [PATCH] ARM: sunxi: allow building without reset controller Arnd Bergmann
@ 2014-05-27 8:40 ` Maxime Ripard
0 siblings, 0 replies; 2+ messages in thread
From: Maxime Ripard @ 2014-05-27 8:40 UTC (permalink / raw)
To: linux-arm-kernel
Hi Arnd,
On Mon, May 26, 2014 at 05:19:03PM +0200, Arnd Bergmann wrote:
> 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>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Can you apply it directly in arm-soc?
Thanks,
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140527/62394c7a/attachment.sig>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-27 8:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-26 15:19 [PATCH] ARM: sunxi: allow building without reset controller Arnd Bergmann
2014-05-27 8:40 ` Maxime Ripard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox