drm/imx: ipuv3-crtc: use drm managed resources
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 10 Dec 2020 15:38:45 +0000 (16:38 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 4 Jan 2021 11:59:34 +0000 (12:59 +0100)
commit16da8e9a7767ac77720f49bfa870def61a250cda
treee1dad4b213a7cf389877df1cf48725acdbabfceb
parent699e7e543f1a7cc5a28159832e9a28261bc9e6be
drm/imx: ipuv3-crtc: use drm managed resources

Use use drmm_crtc_alloc_with_planes() to align crtc memory lifetime
with the drm device. drm_crtc_cleanup() is called automatically before
the memory is freed.
Also use drmm_add_action_or_reset() to make sure IPU resources are
released automatically.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/imx/ipuv3-crtc.c