drm/i915: Use intel_fb_gtt_offset() also for gen2/3 primary plane
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 7 Nov 2016 20:20:57 +0000 (22:20 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 8 Nov 2016 13:39:25 +0000 (15:39 +0200)
commitbfb81049fef4ab09a103e7e54962df86399bd0ab
tree3b677176725716f09945bb9dc96169a1cde70c82
parentd2b2cbce99150fbfd7578e341909a40f1764c95d
drm/i915: Use intel_fb_gtt_offset() also for gen2/3 primary plane

The code to determine the primary plane offset for gen2/3 looks
different than the code for gen4+, but in fact it's doing the same
thing. Let's make it uniform. Allows us to eliminate the 'obj' from
the list of local variables as well.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1478550057-24864-6-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_display.c