I2C: OMAP: Handle error check for pm runtime
authorShubhrajyoti D <shubhrajyoti@ti.com>
Tue, 29 May 2012 10:56:19 +0000 (16:26 +0530)
committerWolfram Sang <w.sang@pengutronix.de>
Sun, 8 Jul 2012 10:49:14 +0000 (12:49 +0200)
commit3b0fb97c8dc476935670706873c27a474191ccce
treeb40957fee2679e5824f64c55d4149421a2c15fcc
parent0861f430893e0b6fe980a71cdc5fb444b952b8e1
I2C: OMAP: Handle error check for pm runtime

If PM runtime get_sync fails return with the error
so that no further reads/writes goes through the interface.
This will avoid possible abort. Add a error message in case
of failure with the cause of the failure.

Reviewed-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/busses/i2c-omap.c