gma500: Fix resume paths
authorAlan Cox <alan@linux.intel.com>
Wed, 14 Mar 2012 12:00:09 +0000 (12:00 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 15 Mar 2012 09:46:02 +0000 (09:46 +0000)
We fall apart somewhat on resume because we don't invoke all the resume
methods as we should. Fix the silly error in the logic.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/gma500/power.c

index 994f6693549941cb6fc71033667ec9abc1b8ac94..8d23c45b5bc6c2b88136363af84fddb697c15c0c 100644 (file)
@@ -102,9 +102,6 @@ static void gma_resume_display(struct pci_dev *pdev)
        struct drm_device *dev = pci_get_drvdata(pdev);
        struct drm_psb_private *dev_priv = dev->dev_private;
 
-       if (dev_priv->suspended == false)
-               return;
-
        /* turn on the display power island */
        dev_priv->ops->power_up(dev);
        dev_priv->suspended = false;