diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2006-02-09 04:29:00 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2006-02-09 04:29:00 -0500 |
commit | 9caafa6c8686e319cf4d5f3757b3972c6c522b7c (patch) | |
tree | b38979b835b5d22e681b175d0b98a3c7560d9c59 /drivers/char/agp/ati-agp.c | |
parent | 51e9f2ff83df6b1c81c5c44f4486c68ed87aa20e (diff) | |
parent | cac0e8e8bb2e7a086643bdd00c41d900a79bb4fa (diff) |
Merge branch 'upstream-fixes'
Diffstat (limited to 'drivers/char/agp/ati-agp.c')
-rw-r--r-- | drivers/char/agp/ati-agp.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/char/agp/ati-agp.c b/drivers/char/agp/ati-agp.c index 53372a83b675..5b74c36c116c 100644 --- a/drivers/char/agp/ati-agp.c +++ b/drivers/char/agp/ati-agp.c | |||
@@ -244,6 +244,22 @@ static int ati_configure(void) | |||
244 | } | 244 | } |
245 | 245 | ||
246 | 246 | ||
247 | #ifdef CONFIG_PM | ||
248 | static int agp_ati_resume(struct pci_dev *dev) | ||
249 | { | ||
250 | pci_restore_state(dev); | ||
251 | |||
252 | return ati_configure(); | ||
253 | } | ||
254 | |||
255 | static int agp_ati_suspend(struct pci_dev *dev, pm_message_t state) | ||
256 | { | ||
257 | pci_save_state(dev); | ||
258 | |||
259 | return 0; | ||
260 | } | ||
261 | #endif | ||
262 | |||
247 | /* | 263 | /* |
248 | *Since we don't need contigious memory we just try | 264 | *Since we don't need contigious memory we just try |
249 | * to get the gatt table once | 265 | * to get the gatt table once |
@@ -525,6 +541,10 @@ static struct pci_driver agp_ati_pci_driver = { | |||
525 | .id_table = agp_ati_pci_table, | 541 | .id_table = agp_ati_pci_table, |
526 | .probe = agp_ati_probe, | 542 | .probe = agp_ati_probe, |
527 | .remove = agp_ati_remove, | 543 | .remove = agp_ati_remove, |
544 | #ifdef CONFIG_PM | ||
545 | .resume = agp_ati_resume, | ||
546 | .suspend = agp_ati_suspend, | ||
547 | #endif | ||
528 | }; | 548 | }; |
529 | 549 | ||
530 | static int __init agp_ati_init(void) | 550 | static int __init agp_ati_init(void) |