Commit fa01d096 authored by Andy Gross's avatar Andy Gross Committed by 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: default avatarAndy Gross <agross@codeaurora.org>
Reviewed-by: default avatarIvan T. Ivanov <iivanov@mm-sol.com>
Acked-by: default avatarBjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent ce78cc07
......@@ -479,7 +479,7 @@ static int qup_i2c_xfer(struct i2c_adapter *adap,
int ret, idx;
ret = pm_runtime_get_sync(qup->dev);
if (ret)
if (ret < 0)
goto out;
writel(1, qup->base + QUP_SW_RESET);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment