OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dae895
)
sh: clkfwk: Handle clk_get_sys() returning an ERR_PTR.
author
Paul Mundt
<lethal@linux-sh.org>
Tue, 12 May 2009 07:07:40 +0000
(16:07 +0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Tue, 12 May 2009 07:07:40 +0000
(16:07 +0900)
clk_get() needs to also perform an IS_ERR() check to see whether
clk_get_sys() failed or not.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/cpu/clock.c
patch
|
blob
|
history
diff --git
a/arch/sh/kernel/cpu/clock.c
b/arch/sh/kernel/cpu/clock.c
index
34707b8
..
9e1fc13
100644
(file)
--- a/
arch/sh/kernel/cpu/clock.c
+++ b/
arch/sh/kernel/cpu/clock.c
@@
-399,7
+399,7
@@
struct clk *clk_get(struct device *dev, const char *id)
int idno;
clk = clk_get_sys(dev_id, id);
- if (clk)
+ if (clk
&& !IS_ERR(clk)
)
return clk;
if (dev == NULL || dev->bus != &platform_bus_type)