Commit e64d0229 authored by Thomas Zimmermann's avatar Thomas Zimmermann Committed by Tomi Valkeinen
Browse files

drm/omap: Replace drm_gem_object_unreference_unlocked with put function



This patch unifies the naming of DRM functions for reference counting
of struct drm_gem_object. The resulting code is more aligned with the
rest of the Linux kernel interfaces.

Signed-off-by: default avatarThomas Zimmermann <tdz@users.sourceforge.net>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 3ce11806
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -439,7 +439,7 @@ static int ioctl_gem_info(struct drm_device *dev, void *data,
	args->size = omap_gem_mmap_size(obj);
	args->offset = omap_gem_mmap_offset(obj);

	drm_gem_object_unreference_unlocked(obj);
	drm_gem_object_put_unlocked(obj);

	return ret;
}
+1 −1
Original line number Diff line number Diff line
@@ -319,7 +319,7 @@ struct drm_framebuffer *omap_framebuffer_create(struct drm_device *dev,

error:
	while (--i >= 0)
		drm_gem_object_unreference_unlocked(bos[i]);
		drm_gem_object_put_unlocked(bos[i]);

	return fb;
}
+1 −1
Original line number Diff line number Diff line
@@ -150,7 +150,7 @@ static int omap_fbdev_create(struct drm_fb_helper *helper,
		/* note: if fb creation failed, we can't rely on fb destroy
		 * to unref the bo:
		 */
		drm_gem_object_unreference_unlocked(fbdev->bo);
		drm_gem_object_put_unlocked(fbdev->bo);
		ret = PTR_ERR(fb);
		goto fail;
	}
+2 −2
Original line number Diff line number Diff line
@@ -638,7 +638,7 @@ int omap_gem_dumb_map_offset(struct drm_file *file, struct drm_device *dev,

	*offset = omap_gem_mmap_offset(obj);

	drm_gem_object_unreference_unlocked(obj);
	drm_gem_object_put_unlocked(obj);

fail:
	return ret;
@@ -1312,7 +1312,7 @@ int omap_gem_new_handle(struct drm_device *dev, struct drm_file *file,
	}

	/* drop reference from allocate - handle holds it now */
	drm_gem_object_unreference_unlocked(obj);
	drm_gem_object_put_unlocked(obj);

	return 0;
}