if (IS_GEN5(dev))
intel_gpu_ips_init(dev_priv);
- intel_runtime_pm_enable(dev_priv);
-
i915_audio_component_init(dev_priv);
+ intel_runtime_pm_enable(dev_priv);
+
intel_runtime_pm_put(dev_priv);
return 0;
intel_fbdev_fini(dev);
- i915_audio_component_cleanup(dev_priv);
-
ret = i915_gem_suspend(dev);
if (ret) {
DRM_ERROR("failed to idle hardware: %d\n", ret);
intel_power_domains_fini(dev_priv);
+ i915_audio_component_cleanup(dev_priv);
+
intel_gpu_ips_teardown();
i915_teardown_sysfs(dev);