summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Pitre <nicolas.pitre@linaro.org>2015-11-03 23:09:58 -0500
committerNicolas Pitre <nicolas.pitre@linaro.org>2015-11-16 12:39:55 -0500
commitc24ca5be763a402c7fce0bd073c17de901ad5e38 (patch)
tree6f20e5b98ef0b1957f0ac2b2aa4d06d40ebe0fa9
parent8d43b49e7e0070f96ac46d30659a336c0224fa0b (diff)
downloadop-kernel-dev-c24ca5be763a402c7fce0bd073c17de901ad5e38.zip
op-kernel-dev-c24ca5be763a402c7fce0bd073c17de901ad5e38.tar.gz
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>
-rw-r--r--drivers/gpu/drm/mgag200/mgag200_mode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/mgag200/mgag200_mode.c b/drivers/gpu/drm/mgag200/mgag200_mode.c
index c99d3fe..1d4c480 100644
--- a/drivers/gpu/drm/mgag200/mgag200_mode.c
+++ b/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)
{
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;
divisor = 1024;
OpenPOWER on IntegriCloud