summaryrefslogtreecommitdiff
path: root/drivers/gpu/vga
diff options
context:
space:
mode:
authorLuben Tuikov <luben.tuikov@amd.com>2020-08-14 20:41:55 -0400
committerAlex Deucher <alexander.deucher@amd.com>2020-08-26 16:40:17 -0400
commit8aba21b75136c39c4bf63345d699d97dc477ce0e (patch)
tree4f550dc7dcac9ca609178442c355062fe9819d85 /drivers/gpu/vga
parent4a580877bdcb837e7a3754ae20798dcfccb44e80 (diff)
drm/amdgpu: Embed drm_device into amdgpu_device (v3)
a) Embed struct drm_device into struct amdgpu_device. b) Modify the inline-f drm_to_adev() accordingly. c) Modify the inline-f adev_to_drm() accordingly. d) Eliminate the use of drm_device.dev_private, in amdgpu. e) Switch from using drm_dev_alloc() to drm_dev_init(). f) Add a DRM driver release function, which frees the container amdgpu_device after all krefs on the contained drm_device have been released. v2: Split out adding adev_to_drm() into its own patch (previous commit), making this patch more succinct and clear. More detailed commit description. v3: squash in fix to call drmm_add_final_kfree() to avoid a warning. Signed-off-by: Luben Tuikov <luben.tuikov@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/vga')
0 files changed, 0 insertions, 0 deletions