Re: [PATCH 1/1] drm/amdgpu: Convert to using devm_drm_dev_alloc() (v2)

2020-09-17 Thread Alex Deucher
On Thu, Sep 17, 2020 at 6:13 PM Luben Tuikov wrote: > > 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

[PATCH 1/1] drm/amdgpu: Convert to using devm_drm_dev_alloc() (v2)

2020-09-17 Thread Luben Tuikov
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 devi