Commit c29b6b0b authored by Laurent Pinchart's avatar Laurent Pinchart
Browse files

drm: rcar-du: Don't put reference to drm_device in rcar_du_remove()



The reference to the drm_device that was acquired by
devm_drm_dev_alloc() is released automatically by the devres
infrastructure. It must not be released manually, as that causes a
reference underflow..

Fixes: ea6aae15 ("drm: rcar-du: Embed drm_device in rcar_du_device")
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: default avatarKieran Bingham <kieran.bingham+renesas@ideasonboard.com>
parent 015f2ebb
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -556,8 +556,6 @@ static int rcar_du_remove(struct platform_device *pdev)

	drm_kms_helper_poll_fini(ddev);

	drm_dev_put(ddev);

	return 0;
}