summaryrefslogtreecommitdiff
path: root/drivers/lguest
diff options
context:
space:
mode:
authorBen Dooks <ben@simtec.co.uk>2009-08-18 21:11:16 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2009-08-18 23:31:13 (GMT)
commitb8978784544e8b4e8fbacb558df8580957d4f8a5 (patch)
treeecc74e896383a4203d0bdd679161bd419f4b430e /drivers/lguest
parentb2503a9408e44eb0531adc3436c513ea70f91c42 (diff)
downloadlinux-fsl-qoriq-b8978784544e8b4e8fbacb558df8580957d4f8a5.tar.xz
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 <ben@simtec.co.uk> Cc: David Brownell <david-b@pacbell.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/lguest')
0 files changed, 0 insertions, 0 deletions