diff options
| author | Kevin Hilman <[email protected]> | 2012-06-27 01:45:32 +0000 |
|---|---|---|
| committer | Wolfram Sang <[email protected]> | 2012-08-18 08:11:44 +0000 |
| commit | 33ec5e818b7b0d0d02864a9586050c6f9a6a8b98 (patch) | |
| tree | f0e832844b23273bbd6f46eb0a4ae2e06eb94bd4 /arch/powerpc/lib/code-patching.c | |
| parent | i2c: nomadik: Add default configuration into the Nomadik I2C driver (diff) | |
| download | kernel-33ec5e818b7b0d0d02864a9586050c6f9a6a8b98.tar.gz kernel-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 <[email protected]>
Reviewed-by: Shubhrajyoti D <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions
