diff mbox

sh_tmu: compute mult and shift before registration

Message ID 4C039B57.6010109@aurel32.net (mailing list archive)
State Changes Requested
Headers show

Commit Message

Aurelien Jarno May 31, 2010, 11:19 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/clocksource/sh_tmu.c b/drivers/clocksource/sh_tmu.c
index 8e44e14..6f0fcfd 100644
--- a/drivers/clocksource/sh_tmu.c
+++ b/drivers/clocksource/sh_tmu.c
@@ -228,6 +228,8 @@  static int sh_tmu_register_clocksource(struct
sh_tmu_priv *p,
        cs->disable = sh_tmu_clocksource_disable;
        cs->mask = CLOCKSOURCE_MASK(32);
        cs->flags = CLOCK_SOURCE_IS_CONTINUOUS;
+       sh_tmu_clocksource_enable(cs);
+       sh_tmu_clocksource_disable(cs);
        dev_info(&p->pdev->dev, "used as clock source\n");
        clocksource_register(cs);