projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sh: clk: Fix clk_enable() to return 0 on NULL clk
[linux-2.6-microblaze.git]
/
drivers
/
sh
/
clk
/
core.c
diff --git
a/drivers/sh/clk/core.c
b/drivers/sh/clk/core.c
index
d996782
..
7a73f5e
100644
(file)
--- a/
drivers/sh/clk/core.c
+++ b/
drivers/sh/clk/core.c
@@
-295,7
+295,7
@@
int clk_enable(struct clk *clk)
int ret;
if (!clk)
- return
-EINVAL
;
+ return
0
;
spin_lock_irqsave(&clock_lock, flags);
ret = __clk_enable(clk);