drm/i915: Split out load time early initialization
authorImre Deak <imre.deak@intel.com>
Wed, 16 Mar 2016 11:39:03 +0000 (13:39 +0200)
committerImre Deak <imre.deak@intel.com>
Thu, 17 Mar 2016 13:22:07 +0000 (15:22 +0200)
commit5d7a6eefc3b025725dd1b5a643e90ce068e9dbd4
tree26ad28a3abbbe17d77882f2fe34171a1fd054a2b
parentfbf107bdbd449494e6b17589f0a8a02094b52a19
drm/i915: Split out load time early initialization

According to the new init phases scheme we should initialize "SW-only"
state not requiring accessing the device as the very first step, so that
the reasoning about dependencies of later steps becomes easier. So move
these init steps into a separate function. This also has the benefit of
making the error path cleaner both in the new function and int
i915_driver_load()/unload().

No functional change.

Suggested by Chris.

CC: Chris Wilson <chris@chris-wilson.co.uk>
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-15-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/i915_dma.c