I2C: OMAP: Fix the mismatch of pm_runtime enable and disable
authorShubhrajyoti D <shubhrajyoti@ti.com>
Tue, 29 May 2012 10:56:14 +0000 (16:26 +0530)
committerWolfram Sang <w.sang@pengutronix.de>
Sun, 8 Jul 2012 10:49:13 +0000 (12:49 +0200)
commit247405160093cf88cb59242f877543dd28e93df1
tree0a8e57dda203ad3990598d49ceb230b1ca23584b
parent3dae3efb123f8b21df57f426c9c72d6ebcd83f8d
I2C: OMAP: Fix the mismatch of pm_runtime enable and disable

Currently the i2c driver calls the pm_runtime_enable and never
the disable. This may cause a warning when pm_runtime_enable
checks for the count match.Fix the same by calling
pm_runtime_disable in the error and the remove path.

Cc: Rajendra Nayak <rnayak@ti.com>
Acked-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