Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19170
b: refs/heads/master
c: 5dda498
h: refs/heads/master
v: v3
  • Loading branch information
akpm@osdl.org authored and Dave Jones committed Jan 17, 2006
1 parent c9a44f9 commit 2855f3d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 90be4b49b8b54505772a6a766ac0891ec92b4c2d
refs/heads/master: 5dda4986752b531d89d49c218682e42c63ef1d61
20 changes: 20 additions & 0 deletions trunk/drivers/char/agp/ati-agp.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,22 @@ static int ati_configure(void)
}


#ifdef CONFIG_PM
static int agp_ati_resume(struct pci_dev *dev)
{
pci_restore_state(dev);

return ati_configure();
}

static int agp_ati_suspend(struct pci_dev *dev, pm_message_t state)
{
pci_save_state(dev);

return 0;
}
#endif

/*
*Since we don't need contigious memory we just try
* to get the gatt table once
Expand Down Expand Up @@ -525,6 +541,10 @@ static struct pci_driver agp_ati_pci_driver = {
.id_table = agp_ati_pci_table,
.probe = agp_ati_probe,
.remove = agp_ati_remove,
#ifdef CONFIG_PM
.resume = agp_ati_resume,
.suspend = agp_ati_suspend,
#endif
};

static int __init agp_ati_init(void)
Expand Down

0 comments on commit 2855f3d

Please sign in to comment.