]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
drm/radeon: use locked rmmap to remove sarea mapping.
authorDave Airlie <airlied@redhat.com>
Thu, 18 Dec 2008 23:23:14 +0000 (10:23 +1100)
committerDave Airlie <airlied@linux.ie>
Mon, 29 Dec 2008 07:47:24 +0000 (17:47 +1000)
this exports the locked version of the symbol as struct_mutex locks it all.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_bufs.c
drivers/gpu/drm/radeon/radeon_cp.c

index 7fb690bcd492dafd60a4fe722d43543c6c150839..72c667f9bee1aadbc4067687d05aca0849be751b 100644 (file)
@@ -440,6 +440,7 @@ int drm_rmmap_locked(struct drm_device *dev, drm_local_map_t *map)
 
        return 0;
 }
+EXPORT_SYMBOL(drm_rmmap_locked);
 
 int drm_rmmap(struct drm_device *dev, drm_local_map_t *map)
 {
index 4f5d1e9962176ab5d8affc12c8bd83ad1ad56bac..63212d7bbc287a36ef9bcc3cba45b3ac6cd97deb 100644 (file)
@@ -1804,7 +1804,7 @@ void radeon_master_destroy(struct drm_device *dev, struct drm_master *master)
 
        master_priv->sarea_priv = NULL;
        if (master_priv->sarea)
-               drm_rmmap(dev, master_priv->sarea);
+               drm_rmmap_locked(dev, master_priv->sarea);
 
        drm_free(master_priv, sizeof(*master_priv), DRM_MEM_DRIVER);