diff options
author | Ben Dooks <ben@simtec.co.uk> | 2009-09-23 01:47:43 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-23 16:39:56 +0200 |
commit | 360fa58828784f307c3977d5ff4c8e400f074a56 (patch) | |
tree | 5909f2f112ca2d160cbf5f65ac6776e5f0fd84b5 /kernel/kexec.c | |
parent | video: console, use DIV_ROUND_UP (diff) | |
download | linux-360fa58828784f307c3977d5ff4c8e400f074a56.tar.xz linux-360fa58828784f307c3977d5ff4c8e400f074a56.zip |
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 <ben@simtec.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/kexec.c')
0 files changed, 0 insertions, 0 deletions