]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit30fe5d08b560e69a54f8a9c9369dd93607e9b84f
tree26ad28a3abbbe17d77882f2fe34171a1fd054a2b
parent087f0cb173f2dbad7c13662f4ae10f4b0b60ab2a
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