drm/i915: Do not put big intel_crtc_state on the stack
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 19 Jan 2016 15:25:17 +0000 (15:25 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Wed, 20 Jan 2016 10:08:54 +0000 (10:08 +0000)
commit3f36b93797bd773eb27e31cf53e3d1f9e64c77ab
treebd5214b9e34fc730aa842fb88a50091d999536ca
parentbf22045250fafbe733277e13300eaa240ba2104d
drm/i915: Do not put big intel_crtc_state on the stack

Having this on stack triggers the -Wframe-larger-than=1024 and
is not nice to put such big things on the kernel stack anyway.

This required a little bit of refactoring to handle the new
failure path from vlv_force_pll_on.

v2: Corrected some whitespace.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: John Harrison <john.c.harrison@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1453217117-26125-1-git-send-email-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_drv.h