drm: add _DRM_CONSISTENT map type
[linux-2.6.git] / drivers / char / drm / drm_drv.c
index 3333c25..f4046c8 100644 (file)
@@ -228,6 +228,10 @@ int drm_takedown( drm_device_t *dev )
                                                dev->sg = NULL;
                                        }
                                        break;
+                               case _DRM_CONSISTENT:
+                                       drm_pci_free(dev, map->size,
+                                                    map->handle, map->offset);
+                                       break;
                                }
                                drm_free(map, sizeof(*map), DRM_MEM_MAPS);
                        }