drm: rcar-du: Release vsp device reference in all error paths
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Fri, 4 Dec 2020 11:07:41 +0000 (13:07 +0200)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 5 Jan 2021 05:19:59 +0000 (07:19 +0200)
commit594f967b53ffafd50c5f091f434c4a07e2d0f613
tree81d28b54bc618942cd07e71f97966d8443784ff4
parent53ced169373aab52d3b5da0fee6a342002d1876d
drm: rcar-du: Release vsp device reference in all error paths

Use drmm_add_action_or_reset() instead of drmm_add_action() to ensure
the vsp device reference is released in case the function call fails.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
drivers/gpu/drm/rcar-du/rcar_du_vsp.c