Re: [PATCH 36/44] drm/komeda: use devm_drm_dev_alloc

2020-04-08 Thread Daniel Vetter
On Wed, Apr 8, 2020 at 10:41 AM james qian wang (Arm Technology China) wrote: > > On Fri, Apr 03, 2020 at 09:58:20PM +0800, Daniel Vetter wrote: > > Komeda uses the component framework, which does open/close a new > > devres group around all the bind callbacks. Which means we can use > > devm_

Re: [PATCH 36/44] drm/komeda: use devm_drm_dev_alloc

2020-04-08 Thread james qian wang (Arm Technology China)
On Fri, Apr 03, 2020 at 09:58:20PM +0800, Daniel Vetter wrote: > Komeda uses the component framework, which does open/close a new > devres group around all the bind callbacks. Which means we can use > devm_ functions for managing the drm_device cleanup, with leaking > stuff in case of deferred

[PATCH 36/44] drm/komeda: use devm_drm_dev_alloc

2020-04-03 Thread Daniel Vetter
Komeda uses the component framework, which does open/close a new devres group around all the bind callbacks. Which means we can use devm_ functions for managing the drm_device cleanup, with leaking stuff in case of deferred probes or other reasons to unbind components, or the component_master.