drm: rcar-du: Fix leak of CMM platform device reference
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 16 Dec 2020 01:19:46 +0000 (03:19 +0200)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 5 Jan 2021 05:20:13 +0000 (07:20 +0200)
commit9fa120458da142da0d1d3eaf6f6a3a2c2c91d27b
treee6f20d1e67d83517a94c83040a4c2fe5d7485e71
parent8d7d33f6be06f929ac2c5e8ea2323fec272790d4
drm: rcar-du: Fix leak of CMM platform device reference

The device references acquired by of_find_device_by_node() are not
released by the driver. Fix this by registering a cleanup action.

Fixes: 8de707aeb452 ("drm: rcar-du: kms: Initialize CMM instances")
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
drivers/gpu/drm/rcar-du/rcar_du_kms.c