aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/drm_pci.c')
-rw-r--r--drivers/gpu/drm/drm_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_pci.c b/drivers/gpu/drm/drm_pci.c
index f710e3d9d847..6dfae6b3c0bc 100644
--- a/drivers/gpu/drm/drm_pci.c
+++ b/drivers/gpu/drm/drm_pci.c
@@ -276,7 +276,7 @@ static void drm_pci_agp_init(struct drm_device *dev)
276 } 276 }
277} 277}
278 278
279static void drm_pci_agp_destroy(struct drm_device *dev) 279void drm_pci_agp_destroy(struct drm_device *dev)
280{ 280{
281 if (dev->agp) { 281 if (dev->agp) {
282 arch_phys_wc_del(dev->agp->agp_mtrr); 282 arch_phys_wc_del(dev->agp->agp_mtrr);
@@ -293,7 +293,6 @@ static struct drm_bus drm_pci_bus = {
293 .set_busid = drm_pci_set_busid, 293 .set_busid = drm_pci_set_busid,
294 .set_unique = drm_pci_set_unique, 294 .set_unique = drm_pci_set_unique,
295 .irq_by_busid = drm_pci_irq_by_busid, 295 .irq_by_busid = drm_pci_irq_by_busid,
296 .agp_destroy = drm_pci_agp_destroy,
297}; 296};
298 297
299/** 298/**
@@ -457,6 +456,7 @@ int drm_pci_init(struct drm_driver *driver, struct pci_driver *pdriver)
457 return -1; 456 return -1;
458} 457}
459 458
459void drm_pci_agp_destroy(struct drm_device *dev) {}
460#endif 460#endif
461 461
462EXPORT_SYMBOL(drm_pci_init); 462EXPORT_SYMBOL(drm_pci_init);