aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/agp/intel-gtt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/agp/intel-gtt.c')
-rw-r--r--drivers/char/agp/intel-gtt.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/drivers/char/agp/intel-gtt.c b/drivers/char/agp/intel-gtt.c
index 6a89ab8fe605..72f937615056 100644
--- a/drivers/char/agp/intel-gtt.c
+++ b/drivers/char/agp/intel-gtt.c
@@ -15,6 +15,17 @@
15 * /fairy-tale-mode off 15 * /fairy-tale-mode off
16 */ 16 */
17 17
18#include <linux/module.h>
19#include <linux/pci.h>
20#include <linux/init.h>
21#include <linux/kernel.h>
22#include <linux/pagemap.h>
23#include <linux/agp_backend.h>
24#include <asm/smp.h>
25#include "agp.h"
26#include "intel-agp.h"
27#include <linux/intel-gtt.h>
28
18/* 29/*
19 * If we have Intel graphics, we're not going to have anything other than 30 * If we have Intel graphics, we're not going to have anything other than
20 * an Intel IOMMU. So make the correct use of the PCI DMA API contingent 31 * an Intel IOMMU. So make the correct use of the PCI DMA API contingent
@@ -1728,7 +1739,7 @@ static int find_gmch(u16 device)
1728 return 1; 1739 return 1;
1729} 1740}
1730 1741
1731int __devinit intel_gmch_probe(struct pci_dev *pdev, 1742int intel_gmch_probe(struct pci_dev *pdev,
1732 struct agp_bridge_data *bridge) 1743 struct agp_bridge_data *bridge)
1733{ 1744{
1734 int i, mask; 1745 int i, mask;
@@ -1766,9 +1777,14 @@ int __devinit intel_gmch_probe(struct pci_dev *pdev,
1766 1777
1767 return 1; 1778 return 1;
1768} 1779}
1780EXPORT_SYMBOL(intel_gmch_probe);
1769 1781
1770void __devexit intel_gmch_remove(struct pci_dev *pdev) 1782void intel_gmch_remove(struct pci_dev *pdev)
1771{ 1783{
1772 if (intel_private.pcidev) 1784 if (intel_private.pcidev)
1773 pci_dev_put(intel_private.pcidev); 1785 pci_dev_put(intel_private.pcidev);
1774} 1786}
1787EXPORT_SYMBOL(intel_gmch_remove);
1788
1789MODULE_AUTHOR("Dave Jones <davej@redhat.com>");
1790MODULE_LICENSE("GPL and additional rights");