]> 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)
commiteaccc9a8b3c6f0101a902cc0bade35975feae896
tree3b6494c05453b793c056139d14da59704b565adc
parenta7c65cbdc513ffb223b86b633bb7025572b56001
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