projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a909d3e
)
ARM: spear: Fix error handling
author
Christophe JAILLET
<christophe.jaillet@wanadoo.fr>
Sat, 29 Oct 2016 13:58:39 +0000
(15:58 +0200)
committer
Olof Johansson
<olof@lixom.net>
Tue, 8 Nov 2016 03:19:35 +0000
(19:19 -0800)
'clk_get_sys()' returns an error pointer in case of error, not NULL. So
test it with IS_ERR.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-spear/time.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-spear/time.c
b/arch/arm/mach-spear/time.c
index
9ccffc1
..
4878ba9
100644
(file)
--- a/
arch/arm/mach-spear/time.c
+++ b/
arch/arm/mach-spear/time.c
@@
-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;
}