Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 16eeed7e authored by Daniel Lezcano's avatar Daniel Lezcano
Browse files

clocksource/drivers/tango-xtal: Fix boot hang due to incorrect test



Commit 0881841f 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: 0881841f ("Replace code by clocksource_mmio_init")
Reported-by: default avatarMarc Gonzalez <marc_gonzalez@sigmadesigns.com>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent b7c8b4aa
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -42,7 +42,7 @@ static void __init tango_clocksource_init(struct device_node *np)


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