diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-07-01 20:39:41 +0200 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2014-07-02 13:31:32 +0300 |
commit | 1267a26b22be45a09584ff016f33609e026a804c (patch) | |
tree | e1824d8b9b93d82718a935665c5a72fa235c0c6c /drivers/gpu/drm/i915/intel_fbdev.c | |
parent | 0d68b25e9ceb344fe2f93373b1c0311d33814265 (diff) | |
download | op-kernel-dev-1267a26b22be45a09584ff016f33609e026a804c.zip op-kernel-dev-1267a26b22be45a09584ff016f33609e026a804c.tar.gz |
drm/i915: replace ALIGN(PAGE_SIZE) by PAGE_ALIGN
use mm.h definition
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_fbdev.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_fbdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_fbdev.c b/drivers/gpu/drm/i915/intel_fbdev.c index 226fbc7..b8eac8c 100644 --- a/drivers/gpu/drm/i915/intel_fbdev.c +++ b/drivers/gpu/drm/i915/intel_fbdev.c @@ -107,7 +107,7 @@ static int intelfb_alloc(struct drm_fb_helper *helper, sizes->surface_depth); size = mode_cmd.pitches[0] * mode_cmd.height; - size = ALIGN(size, PAGE_SIZE); + size = PAGE_ALIGN(size); obj = i915_gem_object_create_stolen(dev, size); if (obj == NULL) obj = i915_gem_alloc_object(dev, size); |