Skip to content

Commit 8d7aac5

Browse files
tmlinddlezcano
authored andcommitted
clocksource/drivers/timer-ti-dm: Fix finding alwon timer
Clean-up commit b6999fa ("clocksource/drivers/timer-ti-dm: Use of_address_to_resource()") caused a regression where pa is never set making all related SoCs fail to boot. Let's fix this by setting pa if found. Fixes: b6999fa ("clocksource/drivers/timer-ti-dm: Use of_address_to_resource()") Cc: Rob Herring <robh@kernel.org> Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20230412064142.12726-1-tony@atomide.com
1 parent fb73556 commit 8d7aac5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/clocksource/timer-ti-dm-systimer.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,10 @@ static void __init dmtimer_systimer_assign_alwon(void)
261261
if (of_address_to_resource(np, 0, &res))
262262
continue;
263263

264+
pa = res.start;
265+
264266
/* Quirky omap3 boards must use dmtimer12 */
265-
if (quirk_unreliable_oscillator && res.start == 0x48318000)
267+
if (quirk_unreliable_oscillator && pa == 0x48318000)
266268
continue;
267269

268270
of_node_put(np);

0 commit comments

Comments
 (0)