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

Commit 34c720a9 authored by Christophe Jaillet's avatar Christophe Jaillet Committed by Daniel Lezcano
Browse files

clocksource/drivers/cadence_ttc: fix a return value in case of error



IS_ERR and PTR_ERR should use the same variable, clk_ce in this case.

Fixes: 4de1eb07c47f (Convert init function to return error)

Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: default avatarSören Brinkmann <soren.brinkmann@xilinx.com>
parent 46fd5c6b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -523,7 +523,7 @@ static int __init ttc_timer_init(struct device_node *timer)
	clk_ce = of_clk_get(timer, clksel);
	if (IS_ERR(clk_ce)) {
		pr_err("ERROR: timer input clock not found\n");
		return PTR_ERR(clk_cs);
		return PTR_ERR(clk_ce);
	}

	ret = ttc_setup_clocksource(clk_cs, timer_baseaddr, timer_width);