diff options
author | 2021-04-15 09:52:58 +0200 | |
---|---|---|
committer | 2021-06-04 15:16:45 +0200 | |
commit | bfa3357ef9abc9d56a2910222d2deeb9f15c91ff (patch) | |
tree | d2e8e7898f21a3f39bf8b9961bdbf9fa619e9f0c /include/drm/ttm/ttm_resource.h | |
parent | drm/pl111: Actually fix CONFIG_VEXPRESS_CONFIG depends (diff) | |
download | wireguard-linux-bfa3357ef9abc9d56a2910222d2deeb9f15c91ff.tar.xz wireguard-linux-bfa3357ef9abc9d56a2910222d2deeb9f15c91ff.zip |
drm/ttm: allocate resource object instead of embedding it v2
To improve the handling we want the establish the resource object as base
class for the backend allocations.
v2: add missing error handling
Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210602100914.46246-1-christian.koenig@amd.com
Diffstat (limited to 'include/drm/ttm/ttm_resource.h')
-rw-r--r-- | include/drm/ttm/ttm_resource.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/drm/ttm/ttm_resource.h b/include/drm/ttm/ttm_resource.h index 890b9d369519..c17c1a52070d 100644 --- a/include/drm/ttm/ttm_resource.h +++ b/include/drm/ttm/ttm_resource.h @@ -225,8 +225,8 @@ ttm_resource_manager_cleanup(struct ttm_resource_manager *man) int ttm_resource_alloc(struct ttm_buffer_object *bo, const struct ttm_place *place, - struct ttm_resource *res); -void ttm_resource_free(struct ttm_buffer_object *bo, struct ttm_resource *res); + struct ttm_resource **res); +void ttm_resource_free(struct ttm_buffer_object *bo, struct ttm_resource **res); void ttm_resource_manager_init(struct ttm_resource_manager *man, unsigned long p_size); |