Commit 71565619 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Dave Jones

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

Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent e7745d4e
...@@ -337,13 +337,6 @@ static struct agp_bridge_driver efficeon_driver = { ...@@ -337,13 +337,6 @@ static struct agp_bridge_driver efficeon_driver = {
.agp_destroy_page = agp_generic_destroy_page, .agp_destroy_page = agp_generic_destroy_page,
}; };
static int agp_efficeon_resume(struct pci_dev *pdev)
{
printk(KERN_DEBUG PFX "agp_efficeon_resume()\n");
return efficeon_configure();
}
static int __devinit agp_efficeon_probe(struct pci_dev *pdev, static int __devinit agp_efficeon_probe(struct pci_dev *pdev,
const struct pci_device_id *ent) const struct pci_device_id *ent)
{ {
...@@ -414,11 +407,18 @@ static void __devexit agp_efficeon_remove(struct pci_dev *pdev) ...@@ -414,11 +407,18 @@ static void __devexit agp_efficeon_remove(struct pci_dev *pdev)
agp_put_bridge(bridge); agp_put_bridge(bridge);
} }
#ifdef CONFIG_PM
static int agp_efficeon_suspend(struct pci_dev *dev, pm_message_t state) static int agp_efficeon_suspend(struct pci_dev *dev, pm_message_t state)
{ {
return 0; return 0;
} }
static int agp_efficeon_resume(struct pci_dev *pdev)
{
printk(KERN_DEBUG PFX "agp_efficeon_resume()\n");
return efficeon_configure();
}
#endif
static struct pci_device_id agp_efficeon_pci_table[] = { static struct pci_device_id agp_efficeon_pci_table[] = {
{ {
...@@ -439,8 +439,10 @@ static struct pci_driver agp_efficeon_pci_driver = { ...@@ -439,8 +439,10 @@ static struct pci_driver agp_efficeon_pci_driver = {
.id_table = agp_efficeon_pci_table, .id_table = agp_efficeon_pci_table,
.probe = agp_efficeon_probe, .probe = agp_efficeon_probe,
.remove = agp_efficeon_remove, .remove = agp_efficeon_remove,
#ifdef CONFIG_PM
.suspend = agp_efficeon_suspend, .suspend = agp_efficeon_suspend,
.resume = agp_efficeon_resume, .resume = agp_efficeon_resume,
#endif
}; };
static int __init agp_efficeon_init(void) static int __init agp_efficeon_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