summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nv50_fbcon.c
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2010-02-25 07:27:10 +0300
committerBen Skeggs <bskeggs@redhat.com>2010-02-25 08:09:46 +0300
commit3bfc7d22d0400e85a93e835d4398dcbe0af68b0b (patch)
tree0c055a016b8ee5f752a5ac079e69ba054f4ac064 /drivers/gpu/drm/nouveau/nv50_fbcon.c
parentb30083bdb990bcc2829fce83d871a86059ff4fc1 (diff)
downloadlinux-3bfc7d22d0400e85a93e835d4398dcbe0af68b0b.tar.xz
drm/nouveau: use ALIGN instead of open coding it
CC: Ben Skeggs <bskeggs@redhat.com> Signed-off-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv50_fbcon.c')
-rw-r--r--drivers/gpu/drm/nouveau/nv50_fbcon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_fbcon.c b/drivers/gpu/drm/nouveau/nv50_fbcon.c
index 0f57cdf7ccb2..993c7126fbde 100644
--- a/drivers/gpu/drm/nouveau/nv50_fbcon.c
+++ b/drivers/gpu/drm/nouveau/nv50_fbcon.c
@@ -109,7 +109,7 @@ nv50_fbcon_imageblit(struct fb_info *info, const struct fb_image *image)
return;
}
- width = (image->width + 31) & ~31;
+ width = ALIGN(image->width, 32);
dwords = (width * image->height) >> 5;
BEGIN_RING(chan, NvSub2D, 0x0814, 2);