gfx: display: drop redundant ospm_resume_pci() in ospm_power_using_hw_begin()
authorJani Nikula <jani.nikula@intel.com>
Tue, 7 Feb 2012 13:08:27 +0000 (15:08 +0200)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 3 Jul 2012 09:29:45 +0000 (12:29 +0300)
The runtime resume through pm_runtime_get_sync() should already have taken
care of ospm_resume_pci(). No need to repeat here.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Tested-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
drivers/staging/mrst/drv/psb_powermgmt.c

index ef83aed..08169f2 100644 (file)
@@ -1501,14 +1501,6 @@ bool ospm_power_using_hw_begin(int hw_island, bool force_on)
 
        gbResumeInProgress = true;
 
-       ret = ospm_resume_pci(drm_dev->pdev);
-       if (!ret) {
-               printk(KERN_ALERT "ospm_power_using_hw_begin: forcing on %d failed\n", hw_island);
-               gbResumeInProgress = false;
-               pm_runtime_put(&drm_dev->pdev->dev);
-               goto out_unlock;
-       }
-
        switch (hw_island) {
        case OSPM_DISPLAY_ISLAND:
                ospm_resume_display(drm_dev);
@@ -1572,7 +1564,6 @@ increase_count:
                break;
        }
 
-out_unlock:
        mutex_unlock(&g_ospm_mutex);
 
        return ret;