diff options
author | 2012-06-26 18:45:32 -0700 | |
---|---|---|
committer | 2012-08-18 10:11:44 +0200 | |
commit | 33ec5e818b7b0d0d02864a9586050c6f9a6a8b98 (patch) | |
tree | f0e832844b23273bbd6f46eb0a4ae2e06eb94bd4 /lib/mpi/mpi-bit.c | |
parent | i2c: nomadik: Add default configuration into the Nomadik I2C driver (diff) | |
download | linux-dev-33ec5e818b7b0d0d02864a9586050c6f9a6a8b98.tar.xz linux-dev-33ec5e818b7b0d0d02864a9586050c6f9a6a8b98.zip |
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 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions