]> git.hungrycats.org Git - linux/commit
ARM: sa1100: register clocks early
authorRussell King <rmk+kernel@armlinux.org.uk>
Fri, 19 Aug 2016 11:47:54 +0000 (12:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Oct 2016 13:21:22 +0000 (15:21 +0200)
commit6b5d6d8c57fe845f57af5dc039a63468d200ef7d
tree1a16f8bb02153b70de78540cc385ddc9c55415e1
parent1de8f1d3e976e67629ec2557fd52d149d9baf955
ARM: sa1100: register clocks early

commit 198b51e8a6a31d3a6f8e9dd9cade3635d0291f26 upstream.

Since we switched to use pxa_timer, we need to provide the OSTIMER0
clock.  However, as the clock is initialised early, we need to provide
the clock early as well, so that pxa_timer can find it.  Adding the
clock to the clkdev table at core_initcall() time is way too late.

Move the initialisation earlier.

Fixes: ee3a4020f7c9 ("ARM: 8250/1: sa1100: provide OSTIMER0 clock for pxa_timer")
Acked-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-sa1100/clock.c
arch/arm/mach-sa1100/generic.c
arch/arm/mach-sa1100/generic.h