drm/i915: Split out load time MMIO initialization
authorImre Deak <imre.deak@intel.com>
Wed, 16 Mar 2016 11:39:04 +0000 (13:39 +0200)
committerImre Deak <imre.deak@intel.com>
Thu, 17 Mar 2016 13:22:07 +0000 (15:22 +0200)
commitf28cea45e5a9e1680753ce1b91f033dc3ceda7d0
tree9c83d88c74a6c9c5797af953b5963f4df0819833
parent5d7a6eefc3b025725dd1b5a643e90ce068e9dbd4
drm/i915: Split out load time MMIO initialization

According to the new init phases scheme we should have a definite step
in the init sequence where MMIO access is setup, so move the
corresponding code to a separate function. This also has the benefit of
making the error path cleaner both in the new function and in
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-16-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/i915_dma.c