diff options
Diffstat (limited to 'drivers/char/agp/intel-agp.c')
-rw-r--r-- | drivers/char/agp/intel-agp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/char/agp/intel-agp.c b/drivers/char/agp/intel-agp.c index 61ac3809f997..42a1cb871992 100644 --- a/drivers/char/agp/intel-agp.c +++ b/drivers/char/agp/intel-agp.c | |||
@@ -1766,6 +1766,7 @@ static void __devexit agp_intel_remove(struct pci_dev *pdev) | |||
1766 | agp_put_bridge(bridge); | 1766 | agp_put_bridge(bridge); |
1767 | } | 1767 | } |
1768 | 1768 | ||
1769 | #ifdef CONFIG_PM | ||
1769 | static int agp_intel_resume(struct pci_dev *pdev) | 1770 | static int agp_intel_resume(struct pci_dev *pdev) |
1770 | { | 1771 | { |
1771 | struct agp_bridge_data *bridge = pci_get_drvdata(pdev); | 1772 | struct agp_bridge_data *bridge = pci_get_drvdata(pdev); |
@@ -1789,6 +1790,7 @@ static int agp_intel_resume(struct pci_dev *pdev) | |||
1789 | 1790 | ||
1790 | return 0; | 1791 | return 0; |
1791 | } | 1792 | } |
1793 | #endif | ||
1792 | 1794 | ||
1793 | static struct pci_device_id agp_intel_pci_table[] = { | 1795 | static struct pci_device_id agp_intel_pci_table[] = { |
1794 | #define ID(x) \ | 1796 | #define ID(x) \ |
@@ -1835,7 +1837,9 @@ static struct pci_driver agp_intel_pci_driver = { | |||
1835 | .id_table = agp_intel_pci_table, | 1837 | .id_table = agp_intel_pci_table, |
1836 | .probe = agp_intel_probe, | 1838 | .probe = agp_intel_probe, |
1837 | .remove = __devexit_p(agp_intel_remove), | 1839 | .remove = __devexit_p(agp_intel_remove), |
1840 | #ifdef CONFIG_PM | ||
1838 | .resume = agp_intel_resume, | 1841 | .resume = agp_intel_resume, |
1842 | #endif | ||
1839 | }; | 1843 | }; |
1840 | 1844 | ||
1841 | static int __init agp_intel_init(void) | 1845 | static int __init agp_intel_init(void) |