Commit f879c1e6 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] driver core: fix up some missed power_state changes from David's patch

Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 475e7697
...@@ -2363,7 +2363,7 @@ static int aty128_pci_suspend(struct pci_dev *pdev, u32 state) ...@@ -2363,7 +2363,7 @@ static int aty128_pci_suspend(struct pci_dev *pdev, u32 state)
state = 2; state = 2;
#endif /* CONFIG_PPC_PMAC */ #endif /* CONFIG_PPC_PMAC */
if (state != 2 || state == pdev->dev.power_state) if (state != 2 || state == pdev->dev.power.power_state)
return 0; return 0;
printk(KERN_DEBUG "aty128fb: suspending...\n"); printk(KERN_DEBUG "aty128fb: suspending...\n");
...@@ -2394,7 +2394,7 @@ static int aty128_pci_suspend(struct pci_dev *pdev, u32 state) ...@@ -2394,7 +2394,7 @@ static int aty128_pci_suspend(struct pci_dev *pdev, u32 state)
release_console_sem(); release_console_sem();
pdev->dev.power_state = state; pdev->dev.power.power_state = state;
return 0; return 0;
} }
...@@ -2404,13 +2404,13 @@ static int aty128_pci_resume(struct pci_dev *pdev) ...@@ -2404,13 +2404,13 @@ static int aty128_pci_resume(struct pci_dev *pdev)
struct fb_info *info = pci_get_drvdata(pdev); struct fb_info *info = pci_get_drvdata(pdev);
struct aty128fb_par *par = info->par; struct aty128fb_par *par = info->par;
if (pdev->dev.power_state == 0) if (pdev->dev.power.power_state == 0)
return 0; return 0;
acquire_console_sem(); acquire_console_sem();
/* Wakeup chip */ /* Wakeup chip */
if (pdev->dev.power_state == 2) if (pdev->dev.power.power_state == 2)
aty128_set_suspend(par, 0); aty128_set_suspend(par, 0);
par->asleep = 0; par->asleep = 0;
...@@ -2430,7 +2430,7 @@ static int aty128_pci_resume(struct pci_dev *pdev) ...@@ -2430,7 +2430,7 @@ static int aty128_pci_resume(struct pci_dev *pdev)
release_console_sem(); release_console_sem();
pdev->dev.power_state = 0; pdev->dev.power.power_state = 0;
printk(KERN_DEBUG "aty128fb: resumed !\n"); printk(KERN_DEBUG "aty128fb: resumed !\n");
......
...@@ -2033,7 +2033,7 @@ static int atyfb_pci_suspend(struct pci_dev *pdev, u32 state) ...@@ -2033,7 +2033,7 @@ static int atyfb_pci_suspend(struct pci_dev *pdev, u32 state)
state = 2; state = 2;
#endif /* CONFIG_PPC_PMAC */ #endif /* CONFIG_PPC_PMAC */
if (state != 2 || state == pdev->dev.power_state) if (state != 2 || state == pdev->dev.power.power_state)
return 0; return 0;
acquire_console_sem(); acquire_console_sem();
...@@ -2062,7 +2062,7 @@ static int atyfb_pci_suspend(struct pci_dev *pdev, u32 state) ...@@ -2062,7 +2062,7 @@ static int atyfb_pci_suspend(struct pci_dev *pdev, u32 state)
release_console_sem(); release_console_sem();
pdev->dev.power_state = state; pdev->dev.power.power_state = state;
return 0; return 0;
} }
...@@ -2072,12 +2072,12 @@ static int atyfb_pci_resume(struct pci_dev *pdev) ...@@ -2072,12 +2072,12 @@ static int atyfb_pci_resume(struct pci_dev *pdev)
struct fb_info *info = pci_get_drvdata(pdev); struct fb_info *info = pci_get_drvdata(pdev);
struct atyfb_par *par = (struct atyfb_par *) info->par; struct atyfb_par *par = (struct atyfb_par *) info->par;
if (pdev->dev.power_state == 0) if (pdev->dev.power.power_state == 0)
return 0; return 0;
acquire_console_sem(); acquire_console_sem();
if (pdev->dev.power_state == 2) if (pdev->dev.power.power_state == 2)
aty_power_mgmt(0, par); aty_power_mgmt(0, par);
par->asleep = 0; par->asleep = 0;
...@@ -2093,7 +2093,7 @@ static int atyfb_pci_resume(struct pci_dev *pdev) ...@@ -2093,7 +2093,7 @@ static int atyfb_pci_resume(struct pci_dev *pdev)
release_console_sem(); release_console_sem();
pdev->dev.power_state = 0; pdev->dev.power.power_state = 0;
return 0; return 0;
} }
......
...@@ -898,7 +898,7 @@ int radeonfb_pci_suspend(struct pci_dev *pdev, u32 state) ...@@ -898,7 +898,7 @@ int radeonfb_pci_suspend(struct pci_dev *pdev, u32 state)
release_console_sem(); release_console_sem();
pdev->dev.power_state = state; pdev->dev.power.power_state = state;
return 0; return 0;
} }
...@@ -908,7 +908,7 @@ int radeonfb_pci_resume(struct pci_dev *pdev) ...@@ -908,7 +908,7 @@ int radeonfb_pci_resume(struct pci_dev *pdev)
struct fb_info *info = pci_get_drvdata(pdev); struct fb_info *info = pci_get_drvdata(pdev);
struct radeonfb_info *rinfo = info->par; struct radeonfb_info *rinfo = info->par;
if (pdev->dev.power_state == 0) if (pdev->dev.power.power_state == 0)
return 0; return 0;
acquire_console_sem(); acquire_console_sem();
...@@ -935,7 +935,7 @@ int radeonfb_pci_resume(struct pci_dev *pdev) ...@@ -935,7 +935,7 @@ int radeonfb_pci_resume(struct pci_dev *pdev)
release_console_sem(); release_console_sem();
pdev->dev.power_state = 0; pdev->dev.power.power_state = 0;
printk(KERN_DEBUG "radeonfb: resumed !\n"); printk(KERN_DEBUG "radeonfb: resumed !\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment