示例#1
0
void analog_drm_buf_destroy(struct drm_device *dev,
		struct analog_drm_gem_buf *buffer)
{
	if (!buffer) {
		DRM_DEBUG_KMS("buffer is null.\n");
		return;
	}

	lowlevel_buffer_deallocate(dev, buffer);

	kfree(buffer);
	buffer = NULL;
}
void rockchip_drm_free_buf(struct drm_device *dev,
		unsigned int flags, struct rockchip_drm_gem_buf *buffer)
{

	lowlevel_buffer_deallocate(dev, flags, buffer);
}