Skip to content

Commit 16eeed7

Browse files
committed
clocksource/drivers/tango-xtal: Fix boot hang due to incorrect test
Commit 0881841 introduced a regression by inverting a test check after calling clocksource_mmio_init(). That results on the system to hang at boot time. Fix it by inverting the test again. Fixes: 0881841 ("Replace code by clocksource_mmio_init") Reported-by: Marc Gonzalez <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]>
1 parent b7c8b4a commit 16eeed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clocksource/tango_xtal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static void __init tango_clocksource_init(struct device_node *np)
4242

4343
ret = clocksource_mmio_init(xtal_in_cnt, "tango-xtal", xtal_freq, 350,
4444
32, clocksource_mmio_readl_up);
45-
if (!ret) {
45+
if (ret) {
4646
pr_err("%s: registration failed\n", np->full_name);
4747
return;
4848
}

0 commit comments

Comments
 (0)