Browse Source

drm/mgag200/mgag200_mode.c: fix wrong do_div() usage

do_div() is meant to be used with an unsigned dividend.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Nicolas Pitre 9 years ago
parent
commit
c24ca5be76
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/gpu/drm/mgag200/mgag200_mode.c

+ 1 - 1
drivers/gpu/drm/mgag200/mgag200_mode.c

@@ -1564,7 +1564,7 @@ static uint32_t mga_vga_calculate_mode_bandwidth(struct drm_display_mode *mode,
 							int bits_per_pixel)
 							int bits_per_pixel)
 {
 {
 	uint32_t total_area, divisor;
 	uint32_t total_area, divisor;
-	int64_t active_area, pixels_per_second, bandwidth;
+	uint64_t active_area, pixels_per_second, bandwidth;
 	uint64_t bytes_per_pixel = (bits_per_pixel + 7) / 8;
 	uint64_t bytes_per_pixel = (bits_per_pixel + 7) / 8;
 
 
 	divisor = 1024;
 	divisor = 1024;