drm/i915: Move load time init of display/audio hooks earlier
authorImre Deak <imre.deak@intel.com>
Wed, 16 Mar 2016 11:38:53 +0000 (13:38 +0200)
committerImre Deak <imre.deak@intel.com>
Thu, 17 Mar 2016 13:22:04 +0000 (15:22 +0200)
commit8821294172f0f807b7928909aeadd4e7467d2ed0
tree6f3b4b1f073a01b9b59f3218a94e19da8842d5ef
parentbd39ec5ddae8807644196cadbb62bb2b3d88607b
drm/i915: Move load time init of display/audio hooks earlier

All of this is SW only initialization so we can move them earlier. Move
the mutex init where the rest of the locks are inited. While at it also
convert dev to dev_priv.

v2:
- use the term hook instead of callback for these functions (Jani)

CC: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1458128348-15730-5-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/intel_audio.c
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h