I2C: OMAP: xfer: fix runtime PM get/put balance on error
authorKevin Hilman <khilman@ti.com>
Wed, 27 Jun 2012 01:45:32 +0000 (18:45 -0700)
committerWolfram Sang <w.sang@pengutronix.de>
Sat, 18 Aug 2012 08:11:44 +0000 (10:11 +0200)
commit33ec5e818b7b0d0d02864a9586050c6f9a6a8b98
treef0e832844b23273bbd6f46eb0a4ae2e06eb94bd4
parentb007a3ef958413736a9e2ba698ad6675a9d519ab
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>
drivers/i2c/busses/i2c-omap.c
This page took 0.029481 seconds and 5 git commands to generate.