From: Ben Dooks Date: Tue, 22 Sep 2009 23:47:43 +0000 (-0700) Subject: s3c2410fb: fix clockrate calculation X-Git-Tag: v2.6.32-rc1~194 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=360fa58828784f307c3977d5ff4c8e400f074a56;p=pandora-kernel.git s3c2410fb: fix clockrate calculation In the final part of the calculation for the tft display clockrate we divide the output pf s3c2410fb_calc_pixclk() by 2 which leaves us with a rounding error if the result is odd. Change to using DIV_ROUND_UP() to ensure that we always choose a higher divisor and thus a lower frequency. Signed-off-by: Ben Dooks Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed