gpio/omap: use pm-runtime framework
authorTarun Kanti DebBarma <tarun.kanti@ti.com>
Thu, 29 Sep 2011 01:53:22 +0000 (07:23 +0530)
committerTarun Kanti DebBarma <tarun.kanti@ti.com>
Mon, 6 Feb 2012 08:43:44 +0000 (14:13 +0530)
commit55b93c32520dc7ff0097db81db9b1e6b735951a9
tree49b2c64c5a0d32382e1980245b601d47ff500c30
parentec9af5d9f9399ceb340ee26afcc7d23e9d2a94c2
gpio/omap: use pm-runtime framework

Call runtime pm APIs pm_runtime_get_sync() and pm_runtime_put()
for enabling/disabling clocks appropriately. Remove syscore_ops and
instead use SET_RUNTIME_PM_OPS macro.

There is no more need to call omap_device_disable_idle_on_suspend
since driver is PM runtime adapted now.

Signed-off-by: Charulatha V <charu@ti.com>
Signed-off-by: Tarun Kanti DebBarma <tarun.kanti@ti.com>
Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/gpio.c
drivers/gpio/gpio-omap.c