diff options
Diffstat (limited to 'drivers/clocksource/sh_tmu.c')
-rw-r--r-- | drivers/clocksource/sh_tmu.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/clocksource/sh_tmu.c b/drivers/clocksource/sh_tmu.c index 93c2322feab7..fc9ff1e5b770 100644 --- a/drivers/clocksource/sh_tmu.c +++ b/drivers/clocksource/sh_tmu.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #include <linux/clocksource.h> | 30 | #include <linux/clocksource.h> |
31 | #include <linux/clockchips.h> | 31 | #include <linux/clockchips.h> |
32 | #include <linux/sh_timer.h> | 32 | #include <linux/sh_timer.h> |
33 | #include <linux/slab.h> | ||
33 | 34 | ||
34 | struct sh_tmu_priv { | 35 | struct sh_tmu_priv { |
35 | void __iomem *mapbase; | 36 | void __iomem *mapbase; |
@@ -323,15 +324,15 @@ static void sh_tmu_register_clockevent(struct sh_tmu_priv *p, | |||
323 | ced->set_next_event = sh_tmu_clock_event_next; | 324 | ced->set_next_event = sh_tmu_clock_event_next; |
324 | ced->set_mode = sh_tmu_clock_event_mode; | 325 | ced->set_mode = sh_tmu_clock_event_mode; |
325 | 326 | ||
327 | pr_info("sh_tmu: %s used for clock events\n", ced->name); | ||
328 | clockevents_register_device(ced); | ||
329 | |||
326 | ret = setup_irq(p->irqaction.irq, &p->irqaction); | 330 | ret = setup_irq(p->irqaction.irq, &p->irqaction); |
327 | if (ret) { | 331 | if (ret) { |
328 | pr_err("sh_tmu: failed to request irq %d\n", | 332 | pr_err("sh_tmu: failed to request irq %d\n", |
329 | p->irqaction.irq); | 333 | p->irqaction.irq); |
330 | return; | 334 | return; |
331 | } | 335 | } |
332 | |||
333 | pr_info("sh_tmu: %s used for clock events\n", ced->name); | ||
334 | clockevents_register_device(ced); | ||
335 | } | 336 | } |
336 | 337 | ||
337 | static int sh_tmu_register(struct sh_tmu_priv *p, char *name, | 338 | static int sh_tmu_register(struct sh_tmu_priv *p, char *name, |