]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
[ARM] make U300 clk_set_rate() return a _real_ errno
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sun, 31 May 2009 14:08:11 +0000 (15:08 +0100)
committerRussell 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

index d6f8232757ffa40d227efe5399b998e114ecdc9d..5cd04d6751b30166c1d3a1146725ddfa3a840e34 100644 (file)
@@ -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);