]> git.baikalelectronics.ru Git - kernel.git/commit
drm: rcar-du: Don't put reference to drm_device in rcar_du_remove()
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 23 Mar 2021 00:09:53 +0000 (02:09 +0200)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 28 Jul 2021 13:33:07 +0000 (16:33 +0300)
commitc29b6b0b126e9ee69a5d6339475e831a149295bd
treef29ab835594feee9da45a6273ec815bd2d85f71e
parent015f2ebb93767d40c442e749642fffaf10316d78
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: ea6aae151887 ("drm: rcar-du: Embed drm_device in rcar_du_device")
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
drivers/gpu/drm/rcar-du/rcar_du_drv.c