Merge branch 'omap-for-v4.13/clkctrl' into omap-for-v4.13/soc-v4
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c
index ce982d1..6a861c0 100644
--- a/arch/arm/mach-omap2/timer.c
+++ b/arch/arm/mach-omap2/timer.c
@@ -272,6 +272,8 @@
 
 	timer->io_base = of_iomap(np, 0);
 
+	timer->fclk = of_clk_get_by_name(np, "fck");
+
 	of_node_put(np);
 
 	oh = omap_hwmod_lookup(oh_name);
@@ -286,7 +288,8 @@
 	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_OR_NULL(timer->fclk))
+		timer->fclk = clk_get(NULL, omap_hwmod_get_main_clk(oh));
 	if (IS_ERR(timer->fclk))
 		return PTR_ERR(timer->fclk);