From: Kevin Hilman Date: Wed, 27 Jun 2012 01:45:32 +0000 (-0700) Subject: I2C: OMAP: xfer: fix runtime PM get/put balance on error X-Git-Tag: v3.6-rc3~3^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33ec5e818b7b0d0d02864a9586050c6f9a6a8b98;p=pandora-kernel.git 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 Reviewed-by: Shubhrajyoti D Signed-off-by: Wolfram Sang --- Reading git-diff-tree failed