Commit 85be7d60 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Dave Jones

[AGPGART] CONFIG_PM=n slim: drivers/char/agp/intel-agp.c

Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 71565619
...@@ -1766,6 +1766,7 @@ static void __devexit agp_intel_remove(struct pci_dev *pdev) ...@@ -1766,6 +1766,7 @@ static void __devexit agp_intel_remove(struct pci_dev *pdev)
agp_put_bridge(bridge); agp_put_bridge(bridge);
} }
#ifdef CONFIG_PM
static int agp_intel_resume(struct pci_dev *pdev) static int agp_intel_resume(struct pci_dev *pdev)
{ {
struct agp_bridge_data *bridge = pci_get_drvdata(pdev); struct agp_bridge_data *bridge = pci_get_drvdata(pdev);
...@@ -1789,6 +1790,7 @@ static int agp_intel_resume(struct pci_dev *pdev) ...@@ -1789,6 +1790,7 @@ static int agp_intel_resume(struct pci_dev *pdev)
return 0; return 0;
} }
#endif
static struct pci_device_id agp_intel_pci_table[] = { static struct pci_device_id agp_intel_pci_table[] = {
#define ID(x) \ #define ID(x) \
...@@ -1835,7 +1837,9 @@ static struct pci_driver agp_intel_pci_driver = { ...@@ -1835,7 +1837,9 @@ static struct pci_driver agp_intel_pci_driver = {
.id_table = agp_intel_pci_table, .id_table = agp_intel_pci_table,
.probe = agp_intel_probe, .probe = agp_intel_probe,
.remove = __devexit_p(agp_intel_remove), .remove = __devexit_p(agp_intel_remove),
#ifdef CONFIG_PM
.resume = agp_intel_resume, .resume = agp_intel_resume,
#endif
}; };
static int __init agp_intel_init(void) static int __init agp_intel_init(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment