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

Commit ce340961 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Olof Johansson
Browse files

ARM: spear: Fix error handling



'clk_get_sys()' returns an error pointer in case of error, not NULL. So
test it with IS_ERR.

Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent a909d3e6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -233,7 +233,7 @@ void __init spear_setup_of_timer(void)
	}

	gpt_clk = clk_get_sys("gpt0", NULL);
	if (!gpt_clk) {
	if (IS_ERR(gpt_clk)) {
		pr_err("%s:couldn't get clk for gpt\n", __func__);
		goto err_iomap;
	}