Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31261
b: refs/heads/master
c: a4aec26
h: refs/heads/master
i:
  31259: 25d2932
v: v3
  • Loading branch information
Dave Jones committed Jun 20, 2006
1 parent bcd79e0 commit a78fbf0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 89d17b9604ae502392e119dbdbf43f6067745715
refs/heads/master: a4aec2622340e356e7dcd0e8fd05378dacb71c89
16 changes: 9 additions & 7 deletions trunk/drivers/char/agp/ati-agp.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,18 +245,20 @@ static int ati_configure(void)


#ifdef CONFIG_PM
static int agp_ati_resume(struct pci_dev *dev)
static int agp_ati_suspend(struct pci_dev *dev, pm_message_t state)
{
pci_restore_state(dev);
pci_save_state(dev);
pci_set_power_state (pdev, 3);

return ati_configure();
return 0;
}

static int agp_ati_suspend(struct pci_dev *dev, pm_message_t state)
static int agp_ati_resume(struct pci_dev *dev)
{
pci_save_state(dev);
pci_set_power_state (pdev, 0);
pci_restore_state(dev);

return 0;
return ati_configure();
}
#endif

Expand Down Expand Up @@ -545,8 +547,8 @@ static struct pci_driver agp_ati_pci_driver = {
.probe = agp_ati_probe,
.remove = agp_ati_remove,
#ifdef CONFIG_PM
.resume = agp_ati_resume,
.suspend = agp_ati_suspend,
.resume = agp_ati_resume,
#endif
};

Expand Down

0 comments on commit a78fbf0

Please sign in to comment.