We require the device to be powered only before accessing it, so we can move this call later. Signed-off-by: Imre Deak <imre.deak@xxxxxxxxx> --- drivers/gpu/drm/i915/i915_dma.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index 76e5c69..cbf42a9 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c @@ -1032,9 +1032,6 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags) intel_init_display_callbacks(dev_priv); intel_init_clock_gating_callbacks(dev_priv); intel_init_audio_callbacks(dev_priv); - - intel_runtime_pm_get(dev_priv); - intel_display_crc_init(dev); i915_dump_device_info(dev_priv); @@ -1048,6 +1045,8 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags) "It may not be fully functional.\n"); /* Init phase: setup device MMIO */ + intel_runtime_pm_get(dev_priv); + if (i915_get_bridge_dev(dev)) { ret = -EIO; goto out_runtime_pm_put; -- 2.5.0 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx