[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>
This commit is contained in:
parent
f7a9a4d782
commit
ed31b2dfad
1 changed files with 1 additions and 1 deletions
|
@ -682,7 +682,7 @@ int clk_set_rate(struct clk *clk, unsigned long rate)
|
||||||
} else {
|
} else {
|
||||||
printk(KERN_ERR "clock: Failed to set %s to %ld hz\n",
|
printk(KERN_ERR "clock: Failed to set %s to %ld hz\n",
|
||||||
clk->name, rate);
|
clk->name, rate);
|
||||||
return -1;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(clk_set_rate);
|
EXPORT_SYMBOL(clk_set_rate);
|
||||||
|
|
Loading…
Add table
Reference in a new issue