]> Git Repo - linux.git/commit
drm/amdgpu: Convert to using devm_drm_dev_alloc() (v2)
authorLuben Tuikov <[email protected]>
Fri, 18 Sep 2020 13:25:04 +0000 (15:25 +0200)
committerDaniel Vetter <[email protected]>
Mon, 21 Sep 2020 08:44:46 +0000 (10:44 +0200)
commitdf2ce4596c04485fd77adcb18ec033d6c94da2dd
treef6482d8fc4e3266b37ccf71a59f7a361f95cc90f
parentcd01269d11a352f06490a286227f3a50504248e5
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 <[email protected]>
Signed-off-by: Luben Tuikov <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
This page took 0.055469 seconds and 4 git commands to generate.