summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/drm_internal.h
diff options
context:
space:
mode:
authorLuben Tuikov <luben.tuikov@amd.com>2020-09-18 16:25:04 +0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2020-09-21 11:44:46 +0300
commitdf2ce4596c04485fd77adcb18ec033d6c94da2dd (patch)
treef6482d8fc4e3266b37ccf71a59f7a361f95cc90f /drivers/gpu/drm/drm_internal.h
parentcd01269d11a352f06490a286227f3a50504248e5 (diff)
downloadlinux-df2ce4596c04485fd77adcb18ec033d6c94da2dd.tar.xz
drm/amdgpu: Convert to using devm_drm_dev_alloc() (v2)
Convert to using devm_drm_dev_alloc(), as drm_dev_init() is going away. v2: Remove drm_dev_put() since a) devres doesn't do refcounting, see Documentation/driver-api/driver-model/devres.rst, Section 4, paragraph 1; and since b) devres acts as garbage collector when the DRM device's parent's devres "action" callback is called to free the container device (amdgpu_device), which embeds the DRM dev. Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Luben Tuikov <luben.tuikov@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20200918132505.2316382-4-daniel.vetter@ffwll.ch
Diffstat (limited to 'drivers/gpu/drm/drm_internal.h')
0 files changed, 0 insertions, 0 deletions