diff options
Diffstat (limited to 'drivers/video/console/fbcon.c')
-rw-r--r-- | drivers/video/console/fbcon.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c index 022282494d3f..025d4f5e1f6f 100644 --- a/drivers/video/console/fbcon.c +++ b/drivers/video/console/fbcon.c | |||
@@ -620,8 +620,7 @@ static void fbcon_prepare_logo(struct vc_data *vc, struct fb_info *info, | |||
620 | if (fb_get_color_depth(&info->var, &info->fix) == 1) | 620 | if (fb_get_color_depth(&info->var, &info->fix) == 1) |
621 | erase &= ~0x400; | 621 | erase &= ~0x400; |
622 | logo_height = fb_prepare_logo(info, ops->rotate); | 622 | logo_height = fb_prepare_logo(info, ops->rotate); |
623 | logo_lines = (logo_height + vc->vc_font.height - 1) / | 623 | logo_lines = DIV_ROUND_UP(logo_height, vc->vc_font.height); |
624 | vc->vc_font.height; | ||
625 | q = (unsigned short *) (vc->vc_origin + | 624 | q = (unsigned short *) (vc->vc_origin + |
626 | vc->vc_size_row * rows); | 625 | vc->vc_size_row * rows); |
627 | step = logo_lines * cols; | 626 | step = logo_lines * cols; |