mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-05 15:58:03 +02:00
Revert "drm: ioremap balanced with iounmap for drivers/char/drm"
This reverts cc22cd8bde commit.
I put this patch incorrectly in .. will fix now
This commit is contained in:
parent
cc22cd8bde
commit
696f2bfbd1
1 changed files with 0 additions and 4 deletions
|
|
@ -279,8 +279,6 @@ static int drm_addmap_core(drm_device_t * dev, unsigned int offset,
|
|||
|
||||
list = drm_alloc(sizeof(*list), DRM_MEM_MAPS);
|
||||
if (!list) {
|
||||
if (map->type == _DRM_REGISTERS)
|
||||
drm_ioremap(map->handle, map->size, dev);
|
||||
drm_free(map, sizeof(*map), DRM_MEM_MAPS);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
@ -297,8 +295,6 @@ static int drm_addmap_core(drm_device_t * dev, unsigned int offset,
|
|||
ret = drm_map_handle(dev, &list->hash, user_token, 0);
|
||||
|
||||
if (ret) {
|
||||
if (map->type == _DRM_REGISTERS)
|
||||
drm_ioremap(map->handle, map->size, dev);
|
||||
drm_free(map, sizeof(*map), DRM_MEM_MAPS);
|
||||
drm_free(list, sizeof(*list), DRM_MEM_MAPS);
|
||||
mutex_unlock(&dev->struct_mutex);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue