commit | 5aefa34fada9d17a00635516688de34702451708 | [log] [tgz] |
---|---|---|
author | Paul Mundt <lethal@linux-sh.org> | Mon Nov 01 15:30:31 2010 -0400 |
committer | Paul Mundt <lethal@linux-sh.org> | Mon Nov 01 15:30:31 2010 -0400 |
tree | 1efb33a6f02df2c70f8cb8aa3c5cca52c04c9aa2 | |
parent | 3985c7ce85039adacdf882904ca096f091d39346 [diff] |
sh: clkfwk: Fix up rate rounding error handling. According to the linux/clk.h definition we should be handing back an errno value or a valid rate. This fixes up the case where 0 can be returned for invalid frequencies or cases where rounding has no selectable candidate. Reported-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Paul Mundt <lethal@linux-sh.org>