From: Tony Prisk Date: Thu, 27 Dec 2012 00:14:30 +0000 (+1300) Subject: clk: vt8500: Fix device clock divisor calculations X-Git-Tag: v3.9-rc1~149^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72480014b8;p=pandora-kernel.git clk: vt8500: Fix device clock divisor calculations When calculating device clock divisor values in set_rate and round_rate, we do a simple integer divide. If parent_rate / rate has a fraction, this is dropped which results in the device clock being set too high. This patch corrects the problem by adding 1 to the calculated divisor if the division would have had a decimal result. Signed-off-by: Tony Prisk Signed-off-by: Mike Turquette --- Reading git-diff-tree failed