From: Paul Mundt Date: Mon, 1 Nov 2010 19:30:31 +0000 (-0400) Subject: sh: clkfwk: Fix up rate rounding error handling. X-Git-Tag: v2.6.37-rc2~79^2^4~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5aefa34fada9d17a00635516688de34702451708;p=pandora-kernel.git 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 Signed-off-by: Paul Mundt --- Reading git-diff-tree failed