aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2016-11-18 02:15:25 -0500
committerOlof Johansson <olof@lixom.net>2016-11-18 02:15:25 -0500
commit9e27a0aac08fd92e07dedb376772537d5687d9c6 (patch)
tree85446100569a73622d6d15e801bc4fd9b33672a9 /drivers/clocksource
parent56d027b41791238a21c1e00159f26641ca3dc121 (diff)
parente413bd33ac44b6d0bebc0ef2ac19cbe7558a7303 (diff)
Merge tag 'pxa-for-4.10' of https://github.com/rjarzmik/linux into next/soc
This is the pxa changes for v4.10 cycle. This cycle is covering : - some clock fixes common with sa1100 architecture - the consequence of the pxa_camera conversion to v4l2 - a small irq related fix for pxa25x device-tree only * tag 'pxa-for-4.10' of https://github.com/rjarzmik/linux: ARM: pxa: fix pxa25x interrupt init ARM: pxa: remove duplicated include from spitz.c ARM: pxa: em-x270: use the new pxa_camera platform_data ARM: pxa: ezx: use the new pxa_camera platform_data ARM: pxa: mioa701: use the new pxa_camera platform_data ARM: pxa: pxa_cplds: honor probe deferral ARM: sa11x0/pxa: get rid of get_clock_tick_rate watchdog: sa11x0/pxa: get rid of get_clock_tick_rate ARM: sa11x0/pxa: acquire timer rate from the clock rate clk: pxa25x: OSTIMER0 clocks from the main oscillator Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r--drivers/clocksource/pxa_timer.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/clocksource/pxa_timer.c b/drivers/clocksource/pxa_timer.c
index 3e1cb512f3ce..9cae38eebec2 100644
--- a/drivers/clocksource/pxa_timer.c
+++ b/drivers/clocksource/pxa_timer.c
@@ -220,17 +220,16 @@ CLOCKSOURCE_OF_DECLARE(pxa_timer, "marvell,pxa-timer", pxa_timer_dt_init);
220/* 220/*
221 * Legacy timer init for non device-tree boards. 221 * Legacy timer init for non device-tree boards.
222 */ 222 */
223void __init pxa_timer_nodt_init(int irq, void __iomem *base, 223void __init pxa_timer_nodt_init(int irq, void __iomem *base)
224 unsigned long clock_tick_rate)
225{ 224{
226 struct clk *clk; 225 struct clk *clk;
227 226
228 timer_base = base; 227 timer_base = base;
229 clk = clk_get(NULL, "OSTIMER0"); 228 clk = clk_get(NULL, "OSTIMER0");
230 if (clk && !IS_ERR(clk)) 229 if (clk && !IS_ERR(clk)) {
231 clk_prepare_enable(clk); 230 clk_prepare_enable(clk);
232 else 231 pxa_timer_common_init(irq, clk_get_rate(clk));
232 } else {
233 pr_crit("%s: unable to get clk\n", __func__); 233 pr_crit("%s: unable to get clk\n", __func__);
234 234 }
235 pxa_timer_common_init(irq, clock_tick_rate);
236} 235}