commit | ed31b2dfad01d23446860c983ff94460d7971c48 | [log] [tgz] |
---|---|---|
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | Sun May 31 15:08:11 2009 +0100 |
committer | Russell King <rmk+kernel@arm.linux.org.uk> | Sun May 31 15:08:11 2009 +0100 |
tree | 6bf864c02bbf06752134e5a6a16ddfeaab35e791 | |
parent | f7a9a4d782628b4bd2392d931b95bd49732a2918 [diff] [blame] |
[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>
diff --git a/arch/arm/mach-u300/clock.c b/arch/arm/mach-u300/clock.c index d6f8232..5cd04d6 100644 --- a/arch/arm/mach-u300/clock.c +++ b/arch/arm/mach-u300/clock.c
@@ -682,7 +682,7 @@ } 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);