]> Pileus Git - ~andy/linux/commit
ARM: s3c64xx: dt: Fix boot failure due to double clock initialization
authorTomasz Figa <tomasz.figa@gmail.com>
Fri, 13 Dec 2013 19:59:39 +0000 (20:59 +0100)
committerOlof Johansson <olof@lixom.net>
Sat, 14 Dec 2013 05:48:25 +0000 (21:48 -0800)
commitcb12057256ec58b6f798855b27e120579d6c9aee
tree9b18b281c506b62ed192bf15e942f114d450a7ff
parent6f97dc8d4663abed96fa30e3ea4a1d4cfd1c4276
ARM: s3c64xx: dt: Fix boot failure due to double clock initialization

Commit

4178bac ARM: call of_clk_init from default time_init handler

added implicit call to of_clk_init() from default time_init callback,
but it did not change platforms calling it from other callbacks, despite
of not having custom time_init callbacks. This caused double clock
initialization on such platforms, leading to boot failures. An example
of such platform is mach-s3c64xx.

This patch fixes boot failure on s3c64xx by dropping custom init_irq
callback, which had a call to of_clk_init() and moving system reset
initialization to init_machine callback. This allows us to have
clocks initialized properly without a need to have custom init_time or
init_irq callbacks.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-s3c64xx/mach-s3c64xx-dt.c