提交 8c763c9b 编写于 作者: S Sean Paul

drm/rockchip: Balance irq refcount on failure

If create_crtc fails in vop bind, ensure the irq refcount is zeroed
back out before exiting.
Reviewed-by: NDaniel Kurtz <djkurtz@chromium.org>
Signed-off-by: NSean Paul <seanpaul@chromium.org>
上级 d47a7246
......@@ -1547,11 +1547,15 @@ static int vop_bind(struct device *dev, struct device *master, void *data)
ret = vop_create_crtc(vop);
if (ret)
return ret;
goto err_enable_irq;
pm_runtime_enable(&pdev->dev);
return 0;
err_enable_irq:
enable_irq(vop->irq); /* To balance out the disable_irq above */
return ret;
}
static void vop_unbind(struct device *dev, struct device *master, void *data)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册