Merge tag 'drm-for-v4.8' of git://people.freedesktop.org/~airlied/linux
[deliverable/linux.git] / arch / arm / mach-omap2 / timer.c
index cb9497a20fb307548cea76a895274c459b534d06..5e2e2218a4023a28b25657f2174735d908fd2a68 100644 (file)
@@ -289,6 +289,8 @@ static int __init omap_dm_timer_init_one(struct omap_dm_timer *timer,
        if (!timer->io_base)
                return -ENXIO;
 
+       omap_hwmod_setup_one(oh_name);
+
        /* After the dmtimer is using hwmod these clocks won't be needed */
        timer->fclk = clk_get(NULL, omap_hwmod_get_main_clk(oh));
        if (IS_ERR(timer->fclk))
@@ -303,7 +305,6 @@ static int __init omap_dm_timer_init_one(struct omap_dm_timer *timer,
 
        clk_put(src);
 
-       omap_hwmod_setup_one(oh_name);
        omap_hwmod_enable(oh);
        __omap_dm_timer_init_regs(timer);
 
This page took 0.030097 seconds and 5 git commands to generate.