Re: [PATCH v2 01/60] drm/omap: Allocate drm_device earlier and unref it as last step

2018-06-10 Thread Sebastian Reichel
Hi, On Sat, May 26, 2018 at 08:24:19PM +0300, Laurent Pinchart wrote: > From: Peter Ujfalusi > > If we allocate the drm_device earlier we can just return the error code > without the need to use goto. > Do the unref of the drm_device as a last step when cleaning up. This will > make the

[PATCH v2 01/60] drm/omap: Allocate drm_device earlier and unref it as last step

2018-05-26 Thread Laurent Pinchart
From: Peter Ujfalusi If we allocate the drm_device earlier we can just return the error code without the need to use goto. Do the unref of the drm_device as a last step when cleaning up. This will make the drm_device available longer for us and makes sure that we only free