projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7a9a4d
)
[ARM] make U300 clk_set_rate() return a _real_ errno
author
Russell King
<rmk@dyn-67.arm.linux.org.uk>
Sun, 31 May 2009 14:08:11 +0000
(15:08 +0100)
committer
Russell King
<rmk+kernel@arm.linux.org.uk>
Sun, 31 May 2009 14:08:11 +0000
(15:08 +0100)
Another stupid instance of "return -1"-ism.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-u300/clock.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-u300/clock.c
b/arch/arm/mach-u300/clock.c
index d6f8232757ffa40d227efe5399b998e114ecdc9d..5cd04d6751b30166c1d3a1146725ddfa3a840e34 100644
(file)
--- a/
arch/arm/mach-u300/clock.c
+++ b/
arch/arm/mach-u300/clock.c
@@
-682,7
+682,7
@@
int clk_set_rate(struct clk *clk, unsigned long rate)
} else {
printk(KERN_ERR "clock: Failed to set %s to %ld hz\n",
clk->name, rate);
- return -
1
;
+ return -
EINVAL
;
}
}
EXPORT_SYMBOL(clk_set_rate);