summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/bochs
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-07-01 23:02:03 +0400
committerDavid Herrmann <dh.herrmann@gmail.com>2014-07-08 02:34:19 +0400
commita8ba29cd337cce06899e1ad51c69b4beea7628a0 (patch)
tree3e88724426c9cfe223fe82ed4ae69126bbdaa40b /drivers/gpu/drm/bochs
parent2fc2dd781bec793fbc293ecc9345b233783a6382 (diff)
downloadlinux-a8ba29cd337cce06899e1ad51c69b4beea7628a0.tar.xz
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')
-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 b9a695d92792..1728a1b0b813 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;