drm/bochs: replace ALIGN(PAGE_SIZE) by PAGE_ALIGN
authorFabian Frederick <fabf@skynet.be>
Tue, 1 Jul 2014 19:02:03 +0000 (21:02 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Mon, 7 Jul 2014 22:34:19 +0000 (00:34 +0200)
use mm.h definition

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
drivers/gpu/drm/bochs/bochs_mm.c

index b9a695d..1728a1b 100644 (file)
@@ -387,7 +387,7 @@ int bochs_gem_create(struct drm_device *dev, u32 size, bool iskernel,
 
        *obj = NULL;
 
-       size = ALIGN(size, PAGE_SIZE);
+       size = PAGE_ALIGN(size);
        if (size == 0)
                return -EINVAL;