aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-sa1100/generic.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2016-08-19 12:47:54 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2016-08-23 10:02:18 +0100
commit198b51e8a6a31d3a6f8e9dd9cade3635d0291f26 (patch)
tree4d03f0de5943eaa84aa3982d4983a003562260e5 /arch/arm/mach-sa1100/generic.h
parentARM: sa1100: fix 3.6864MHz clock (diff)
downloadlinux-dev-198b51e8a6a31d3a6f8e9dd9cade3635d0291f26.tar.xz
linux-dev-198b51e8a6a31d3a6f8e9dd9cade3635d0291f26.zip
ARM: sa1100: register clocks early
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>
Diffstat (limited to 'arch/arm/mach-sa1100/generic.h')
-rw-r--r--arch/arm/mach-sa1100/generic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-sa1100/generic.h b/arch/arm/mach-sa1100/generic.h
index 0d92e119b36b..68199b603ff7 100644
--- a/arch/arm/mach-sa1100/generic.h
+++ b/arch/arm/mach-sa1100/generic.h
@@ -44,3 +44,5 @@ int sa11x0_pm_init(void);
#else
static inline int sa11x0_pm_init(void) { return 0; }
#endif
+
+int sa11xx_clk_init(void);