]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Split out load time HW initialization
authorImre Deak <imre.deak@intel.com>
Wed, 16 Mar 2016 11:39:05 +0000 (13:39 +0200)
committerImre Deak <imre.deak@intel.com>
Thu, 17 Mar 2016 13:22:08 +0000 (15:22 +0200)
commitec37cd9a14dffe379ae183ccce32d95265f6f090
tree3b6494c05453b793c056139d14da59704b565adc
parentd45d22a680f029f0f5fde69507cc1d6f051633be
drm/i915: Split out load time HW initialization

According to the new init phases scheme we should have a definite step
in the init sequence where we setup things requiring accessing the
device, so move the corresponding code to separate function. The steps
in this init phase should avoid exposing the driver via some interface,
which is done in the last registration init phase. This changae also
has the benefit of making the error path cleaner both in the new
function and 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-17-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/i915_dma.c