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 b9a695d92792ee224868d3f9f9ce32e0475d48c8..1728a1b0b81376ed43e7f39fb5f863cba7563166 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;