4.9-stable review patch.  If anyone has any objections, please let me know.

------------------

From: Daniel Vetter <[email protected]>


[ Upstream commit ae9d2daecf086958a41ad216152ec208d70ba325 ]

fsl is already fully demidlayered in the probe function, but for
convenience stuck with drm_put_dev. Call the unregister/unref parts
separately, to make sure this driver works correct.

Cc: Philipp Zabel <[email protected]>
Cc: CK Hu <[email protected]>
Reviewed-by: Lucas Stach <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: 
http://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Sasha Levin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
 drivers/gpu/drm/mediatek/mtk_drm_drv.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c
+++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
@@ -321,7 +321,8 @@ static void mtk_drm_unbind(struct device
 {
        struct mtk_drm_private *private = dev_get_drvdata(dev);
 
-       drm_put_dev(private->drm);
+       drm_dev_unregister(private->drm);
+       drm_dev_unref(private->drm);
        private->drm = NULL;
 }
 


Reply via email to