Skip to content

Commit

Permalink
[AGPGART] CONFIG_PM=n slim: drivers/char/agp/intel-agp.c
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Dave Jones <davej@redhat.com>
  • Loading branch information
Alexey Dobriyan authored and Dave Jones committed Aug 11, 2006
1 parent 7156561 commit 85be7d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/char/agp/intel-agp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1766,6 +1766,7 @@ static void __devexit agp_intel_remove(struct pci_dev *pdev)
agp_put_bridge(bridge);
}

#ifdef CONFIG_PM
static int agp_intel_resume(struct pci_dev *pdev)
{
struct agp_bridge_data *bridge = pci_get_drvdata(pdev);
Expand All @@ -1789,6 +1790,7 @@ static int agp_intel_resume(struct pci_dev *pdev)

return 0;
}
#endif

static struct pci_device_id agp_intel_pci_table[] = {
#define ID(x) \
Expand Down Expand Up @@ -1835,7 +1837,9 @@ static struct pci_driver agp_intel_pci_driver = {
.id_table = agp_intel_pci_table,
.probe = agp_intel_probe,
.remove = __devexit_p(agp_intel_remove),
#ifdef CONFIG_PM
.resume = agp_intel_resume,
#endif
};

static int __init agp_intel_init(void)
Expand Down

0 comments on commit 85be7d6

Please sign in to comment.