summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/bochs/bochs_mm.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-07-01 21:02:03 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2014-07-08 00:34:19 +0200
commita8ba29cd337cce06899e1ad51c69b4beea7628a0 (patch)
tree3e88724426c9cfe223fe82ed4ae69126bbdaa40b /drivers/gpu/drm/bochs/bochs_mm.c
parent2fc2dd781bec793fbc293ecc9345b233783a6382 (diff)
drm/bochs: replace ALIGN(PAGE_SIZE) by PAGE_ALIGN
use mm.h definition Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/bochs/bochs_mm.c')
-rw-r--r--drivers/gpu/drm/bochs/bochs_mm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/bochs/bochs_mm.c b/drivers/gpu/drm/bochs/bochs_mm.c
index b9a695d9279..1728a1b0b81 100644
--- a/drivers/gpu/drm/bochs/bochs_mm.c
+++ b/drivers/gpu/drm/bochs/bochs_mm.c
@@ -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;