diff options
author | Kevin Hilman <khilman@ti.com> | 2012-06-27 05:45:32 +0400 |
---|---|---|
committer | Wolfram Sang <w.sang@pengutronix.de> | 2012-08-18 12:11:44 +0400 |
commit | 33ec5e818b7b0d0d02864a9586050c6f9a6a8b98 (patch) | |
tree | f0e832844b23273bbd6f46eb0a4ae2e06eb94bd4 /fs/binfmt_em86.c | |
parent | b007a3ef958413736a9e2ba698ad6675a9d519ab (diff) | |
download | linux-33ec5e818b7b0d0d02864a9586050c6f9a6a8b98.tar.xz |
I2C: OMAP: xfer: fix runtime PM get/put balance on error
In omap_i2c_xfer(), ensure pm_runtime_put() is called, even on
failure.
Without this, after a failed xfer, the runtime PM usecount will have
been incremented, but not decremented causing the usecount to never
reach zero after a failure. This keeps the device always runtime PM
enabled which keeps the enclosing power domain active, and prevents
full-chip retention/off from happening during idle.
Signed-off-by: Kevin Hilman <khilman@ti.com>
Reviewed-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Diffstat (limited to 'fs/binfmt_em86.c')
0 files changed, 0 insertions, 0 deletions