Re: [Intel-gfx] [PATCH 45/59] drm/arc: Use drmm_mode_config_cleanup

2020-04-24 Thread Sam Ravnborg
On Wed, Apr 15, 2020 at 09:40:20AM +0200, Daniel Vetter wrote: > With autocleanup through drm_device management we can delete all the > code. Possible now that there's no confusion against devm_kzalloc'ed > structures anymore. > > I inlined arcpgu_setup_mode_config because it's tiny and the newly

[Intel-gfx] [PATCH 45/59] drm/arc: Use drmm_mode_config_cleanup

2020-04-15 Thread Daniel Vetter
With autocleanup through drm_device management we can delete all the code. Possible now that there's no confusion against devm_kzalloc'ed structures anymore. I inlined arcpgu_setup_mode_config because it's tiny and the newly needed return value handling would have been more ... Signed-off-by: Dan