drm: Mark PCI AGP helpers as legacy
[linux-2.6-microblaze.git] / drivers / gpu / drm / drm_drv.c
index 20d22e4..3d8d68a 100644 (file)
@@ -61,7 +61,7 @@ static struct idr drm_minors_idr;
  * prefer to embed struct drm_device into their own device
  * structure and call drm_dev_init() themselves.
  */
-static bool drm_core_init_complete = false;
+static bool drm_core_init_complete;
 
 static struct dentry *drm_debugfs_root;
 
@@ -941,9 +941,7 @@ void drm_dev_unregister(struct drm_device *dev)
        if (dev->driver->unload)
                dev->driver->unload(dev);
 
-       if (dev->agp)
-               drm_pci_agp_destroy(dev);
-
+       drm_legacy_pci_agp_destroy(dev);
        drm_legacy_rmmaps(dev);
 
        remove_compat_control_link(dev);