radeonfb: Use __pci_complete_power_transition()
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 26 Mar 2009 21:52:08 +0000 (22:52 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Mon, 30 Mar 2009 19:46:56 +0000 (21:46 +0200)
Use __pci_complete_power_transition() to finalize the transition into
D2 after programming the PMCSR of the device directly.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/video/aty/radeon_pm.c

index c6d7cc76516ff116edfff3643156fb5a18d19e7a..1de0c0032468da11bf80ddc93067e5f111da9aef 100644 (file)
@@ -2582,7 +2582,7 @@ static void radeon_set_suspend(struct radeonfb_info *rinfo, int suspend)
                 * calling pci_set_power_state()
                 */
                radeonfb_whack_power_state(rinfo, PCI_D2);
-               pci_set_power_state(rinfo->pdev, PCI_D2);
+               __pci_complete_power_transition(rinfo->pdev, PCI_D2);
        } else {
                printk(KERN_DEBUG "radeonfb (%s): switching to D0 state...\n",
                       pci_name(rinfo->pdev));