mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
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: Christophe JAILLET <[email protected]> Signed-off-by: Olof Johansson <[email protected]>
This commit is contained in:
parent
a909d3e636
commit
ce34096152
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue