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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_pci.c b/drivers/gpu/drm/drm_pci.c
index 60af89446bc7..a3b356e70b35 100644
--- a/drivers/gpu/drm/drm_pci.c
+++ b/drivers/gpu/drm/drm_pci.c
@@ -191,7 +191,7 @@ int drm_irq_by_busid(struct drm_device *dev, void *data,
191static void drm_pci_agp_init(struct drm_device *dev) 191static void drm_pci_agp_init(struct drm_device *dev)
192{ 192{
193 if (drm_core_check_feature(dev, DRIVER_USE_AGP)) { 193 if (drm_core_check_feature(dev, DRIVER_USE_AGP)) {
194 if (drm_pci_device_is_agp(dev)) 194 if (pci_find_capability(dev->pdev, PCI_CAP_ID_AGP))
195 dev->agp = drm_agp_init(dev); 195 dev->agp = drm_agp_init(dev);
196 if (dev->agp) { 196 if (dev->agp) {
197 dev->agp->agp_mtrr = arch_phys_wc_add( 197 dev->agp->agp_mtrr = arch_phys_wc_add(