aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/cirrusfb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/cirrusfb.c')
-rw-r--r--drivers/video/cirrusfb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/cirrusfb.c b/drivers/video/cirrusfb.c
index f7e2d5add831..ccfbdc5a40db 100644
--- a/drivers/video/cirrusfb.c
+++ b/drivers/video/cirrusfb.c
@@ -3117,7 +3117,7 @@ static void bestclock(long freq, long *best, long *nom,
3117 } 3117 }
3118 } 3118 }
3119 } 3119 }
3120 d = ((143181 * n) + f - 1) / f; 3120 d = DIV_ROUND_UP(143181 * n, f);
3121 if ((d >= 7) && (d <= 63)) { 3121 if ((d >= 7) && (d <= 63)) {
3122 if (d > 31) 3122 if (d > 31)
3123 d = (d / 2) * 2; 3123 d = (d / 2) * 2;