projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce78cc0
)
i2c: qup: Fix pm_runtime_get_sync usage
author
Andy Gross
<
[email protected]
>
Sat, 3 May 2014 01:54:29 +0000
(20:54 -0500)
committer
Wolfram Sang
<
[email protected]
>
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 <
[email protected]
>
Reviewed-by: Ivan T. Ivanov <
[email protected]
>
Acked-by: Bjorn Andersson <
[email protected]
>
Signed-off-by: Wolfram Sang <
[email protected]
>
drivers/i2c/busses/i2c-qup.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-qup.c
b/drivers/i2c/busses/i2c-qup.c
index 1b4cf14f1106aac597b1ab0346ed848e2139ba22..2a5efb5b487cdc2e4fb8774e94167f6af53ca7d8 100644
(file)
--- a/
drivers/i2c/busses/i2c-qup.c
+++ b/
drivers/i2c/busses/i2c-qup.c
@@
-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);