]> git.baikalelectronics.ru Git - kernel.git/commit
drm/armada: Use devm_drm_dev_alloc
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 4 Sep 2020 14:39:18 +0000 (16:39 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 11 Sep 2020 08:47:19 +0000 (10:47 +0200)
commit5bcdabfe11c91825fc6f6b55b73fe9c5a4c4a527
tree017db61caafe6482805aafccfe4a49da80d65953
parent5c59b32b30c5a977bd0e405b7aea96ea92bdebd0
drm/armada: Use devm_drm_dev_alloc

Also remove the now no longer needed build bug on since that's already
not needed anymore with drmm_add_final_kfree. Conversion to managed
drm_device cleanup is easy, the final drm_dev_put() is already the
last thing in both the bind unbind as in the unbind flow.

Also, this relies on component.c correctly wrapping bind&unbind in
separate devres groups, which it does.

Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Cc: Russell King <linux@armlinux.org.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200904143941.110665-2-daniel.vetter@ffwll.ch
drivers/gpu/drm/armada/armada_drv.c