From: Ben Dooks Date: Tue, 18 Aug 2009 21:11:16 +0000 (-0700) Subject: spi_s3c24xx: fix clock rate calculation X-Git-Tag: v2.6.31-rc7~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8978784544e8b4e8fbacb558df8580957d4f8a5;p=pandora-kernel.git spi_s3c24xx: fix clock rate calculation Currently the clock rate calculation may round as pleased, which means that it is possible that we will round down and end up with a faster clock rate than intended. Change the calculation to use DIV_ROUND_UP() to ensure that we end up with a clock rate either the same as or lower than the user requested one. Signed-off-by: Ben Dooks Cc: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed