Skip to content

Commit 264418e

Browse files
lokeshvutladlezcano
authored andcommitted
clocksource/drivers/timer-ti-dm: Do one override clock parent in prepare()
omap_dm_timer_prepare() is setting up the parent 32KHz clock. This prepare() gets called by request_timer in the client's driver. Because of this, the timer clock parent that is set with assigned-clock-parent is being overwritten. So drop this default setting of parent in prepare(). Signed-off-by: Lokesh Vutla <[email protected]> Reviewed-by: Suman Anna <[email protected]> Acked-by: Tony Lindgren <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent b4d86d1 commit 264418e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/clocksource/timer-ti-dm.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,7 @@ static int omap_dm_timer_prepare(struct omap_dm_timer *timer)
258258
__omap_dm_timer_enable_posted(timer);
259259
omap_dm_timer_disable(timer);
260260

261-
rc = omap_dm_timer_set_source(timer, OMAP_TIMER_SRC_32_KHZ);
262-
263-
return rc;
261+
return 0;
264262
}
265263

266264
static inline u32 omap_dm_timer_reserved_systimer(int id)

0 commit comments

Comments
 (0)