提交 fa01d096 编写于 作者: A Andy Gross 提交者: Wolfram Sang

i2c: qup: Fix pm_runtime_get_sync usage

This patch corrects the error check on the call to pm_runtime_get_sync.
Signed-off-by: NAndy Gross <agross@codeaurora.org>
Reviewed-by: NIvan T. Ivanov <iivanov@mm-sol.com>
Acked-by: NBjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
上级 ce78cc07
...@@ -479,7 +479,7 @@ static int qup_i2c_xfer(struct i2c_adapter *adap, ...@@ -479,7 +479,7 @@ static int qup_i2c_xfer(struct i2c_adapter *adap,
int ret, idx; int ret, idx;
ret = pm_runtime_get_sync(qup->dev); ret = pm_runtime_get_sync(qup->dev);
if (ret) if (ret < 0)
goto out; goto out;
writel(1, qup->base + QUP_SW_RESET); writel(1, qup->base + QUP_SW_RESET);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册