Skip to content

Commit

Permalink
[ARM] make U300 clk_set_rate() return a _real_ errno
Browse files Browse the repository at this point in the history
Another stupid instance of "return -1"-ism.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King authored and Russell King committed May 31, 2009
1 parent f7a9a4d commit ed31b2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-u300/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ed31b2d

Please sign in to comment.