aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/char/agp/ati-agp.c4
-rw-r--r--drivers/char/agp/nvidia-agp.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/char/agp/ati-agp.c b/drivers/char/agp/ati-agp.c
index 0628d7b65c71..03c1dc1ab552 100644
--- a/drivers/char/agp/ati-agp.c
+++ b/drivers/char/agp/ati-agp.c
@@ -236,14 +236,14 @@ static int ati_configure(void)
236static int agp_ati_suspend(struct pci_dev *dev, pm_message_t state) 236static int agp_ati_suspend(struct pci_dev *dev, pm_message_t state)
237{ 237{
238 pci_save_state(dev); 238 pci_save_state(dev);
239 pci_set_power_state(dev, 3); 239 pci_set_power_state(dev, PCI_D3hot);
240 240
241 return 0; 241 return 0;
242} 242}
243 243
244static int agp_ati_resume(struct pci_dev *dev) 244static int agp_ati_resume(struct pci_dev *dev)
245{ 245{
246 pci_set_power_state(dev, 0); 246 pci_set_power_state(dev, PCI_D0);
247 pci_restore_state(dev); 247 pci_restore_state(dev);
248 248
249 return ati_configure(); 249 return ati_configure();
diff --git a/drivers/char/agp/nvidia-agp.c b/drivers/char/agp/nvidia-agp.c
index 62be3ec0da4b..be42a2312dc9 100644
--- a/drivers/char/agp/nvidia-agp.c
+++ b/drivers/char/agp/nvidia-agp.c
@@ -399,8 +399,8 @@ static void agp_nvidia_remove(struct pci_dev *pdev)
399#ifdef CONFIG_PM 399#ifdef CONFIG_PM
400static int agp_nvidia_suspend(struct pci_dev *pdev, pm_message_t state) 400static int agp_nvidia_suspend(struct pci_dev *pdev, pm_message_t state)
401{ 401{
402 pci_save_state (pdev); 402 pci_save_state(pdev);
403 pci_set_power_state (pdev, 3); 403 pci_set_power_state(pdev, PCI_D3hot);
404 404
405 return 0; 405 return 0;
406} 406}
@@ -408,7 +408,7 @@ static int agp_nvidia_suspend(struct pci_dev *pdev, pm_message_t state)
408static int agp_nvidia_resume(struct pci_dev *pdev) 408static int agp_nvidia_resume(struct pci_dev *pdev)
409{ 409{
410 /* set power state 0 and restore PCI space */ 410 /* set power state 0 and restore PCI space */
411 pci_set_power_state (pdev, 0); 411 pci_set_power_state(pdev, PCI_D0);
412 pci_restore_state(pdev); 412 pci_restore_state(pdev);
413 413
414 /* reconfigure AGP hardware again */ 414 /* reconfigure AGP hardware again */