aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>2013-08-13 10:43:12 -0400
committerDaniel Lezcano <daniel.lezcano@linaro.org>2013-09-02 15:44:01 -0400
commit573145f08c2b92c45498468afbbba909f6ce6135 (patch)
treeb04251a5544f8d1d42205fc069de801999ba6a50 /drivers/clocksource
parent3579698e85ef9984e698ac3d8e2257a1adeeb722 (diff)
clocksource: armada-370-xp: Use CLOCKSOURCE_OF_DECLARE
This is almost cosmetic: we achieve a bit of consistency with other clocksource drivers by using the CLOCKSOURCE_OF_DECLARE macro for the boilerplate code. Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r--drivers/clocksource/time-armada-370-xp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/clocksource/time-armada-370-xp.c b/drivers/clocksource/time-armada-370-xp.c
index abc2c9f04821..1e4b523f27c1 100644
--- a/drivers/clocksource/time-armada-370-xp.c
+++ b/drivers/clocksource/time-armada-370-xp.c
@@ -212,13 +212,11 @@ static struct local_timer_ops armada_370_xp_local_timer_ops = {
212 .stop = armada_370_xp_timer_stop, 212 .stop = armada_370_xp_timer_stop,
213}; 213};
214 214
215void __init armada_370_xp_timer_init(void) 215static void __init armada_370_xp_timer_init(struct device_node *np)
216{ 216{
217 u32 clr = 0, set = 0; 217 u32 clr = 0, set = 0;
218 struct device_node *np;
219 int res; 218 int res;
220 219
221 np = of_find_compatible_node(NULL, NULL, "marvell,armada-370-xp-timer");
222 timer_base = of_iomap(np, 0); 220 timer_base = of_iomap(np, 0);
223 WARN_ON(!timer_base); 221 WARN_ON(!timer_base);
224 local_base = of_iomap(np, 1); 222 local_base = of_iomap(np, 1);
@@ -290,3 +288,5 @@ void __init armada_370_xp_timer_init(void)
290#endif 288#endif
291 } 289 }
292} 290}
291CLOCKSOURCE_OF_DECLARE(armada_370_xp, "marvell,armada-370-xp-timer",
292 armada_370_xp_timer_init);