diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2009-05-31 10:08:11 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-05-31 10:08:11 -0400 |
commit | ed31b2dfad01d23446860c983ff94460d7971c48 (patch) | |
tree | 6bf864c02bbf06752134e5a6a16ddfeaab35e791 /arch | |
parent | f7a9a4d782628b4bd2392d931b95bd49732a2918 (diff) |
[ARM] make U300 clk_set_rate() return a _real_ errno
Another stupid instance of "return -1"-ism.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-u300/clock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-u300/clock.c b/arch/arm/mach-u300/clock.c index d6f8232757ff..5cd04d6751b3 100644 --- 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) | |||
682 | } else { | 682 | } else { |
683 | printk(KERN_ERR "clock: Failed to set %s to %ld hz\n", | 683 | printk(KERN_ERR "clock: Failed to set %s to %ld hz\n", |
684 | clk->name, rate); | 684 | clk->name, rate); |
685 | return -1; | 685 | return -EINVAL; |
686 | } | 686 | } |
687 | } | 687 | } |
688 | EXPORT_SYMBOL(clk_set_rate); | 688 | EXPORT_SYMBOL(clk_set_rate); |