]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
i2c: qup: Fix pm_runtime_get_sync usage
authorAndy Gross <agross@codeaurora.org>
Sat, 3 May 2014 01:54:29 +0000 (20:54 -0500)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 14 May 2014 16:14:49 +0000 (18:14 +0200)
This patch corrects the error check on the call to pm_runtime_get_sync.

Signed-off-by: Andy Gross <agross@codeaurora.org>
Reviewed-by: Ivan T. Ivanov <iivanov@mm-sol.com>
Acked-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-qup.c

index 1b4cf14f1106aac597b1ab0346ed848e2139ba22..2a5efb5b487cdc2e4fb8774e94167f6af53ca7d8 100644 (file)
@@ -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);