From: Russell King Date: Sun, 31 May 2009 14:08:11 +0000 (+0100) Subject: [ARM] make U300 clk_set_rate() return a _real_ errno X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ed31b2dfad01d23446860c983ff94460d7971c48;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [ARM] make U300 clk_set_rate() return a _real_ errno Another stupid instance of "return -1"-ism. Signed-off-by: Russell King --- 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) } 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);