aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorNishanth Menon <nm@ti.com>2011-08-08 17:32:31 -0500
committerNishanth Menon <nm@ti.com>2011-08-29 19:35:19 -0500
commitdcbe4d3ceb15d18b1309c38a01da604c76608aca (patch)
tree02724ba6f89a01602a2a319d0f8a9c6e64b7c933 /drivers/gpio
parentbc25361c2c1d3aa3d6a66b777da81fa783fa0e77 (diff)
downloadkernel_samsung_tuna-dcbe4d3ceb15d18b1309c38a01da604c76608aca.zip
kernel_samsung_tuna-dcbe4d3ceb15d18b1309c38a01da604c76608aca.tar.gz
kernel_samsung_tuna-dcbe4d3ceb15d18b1309c38a01da604c76608aca.tar.bz2
GPIO: OMAP: use put_sync_suspend instead of put_sync
save is usually called by arch's suspend path where interrupts are disabled. we should use put_sync_suspend instead of put_sync to prevent sleepable calls to callbacks. Change-Id: I1194b23753d1ad94ffaa23bc9f36ead418d13974 Signed-off-by: Nishanth Menon <nm@ti.com>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-omap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c
index 62b756a..110567e 100644
--- a/drivers/gpio/gpio-omap.c
+++ b/drivers/gpio/gpio-omap.c
@@ -1388,7 +1388,7 @@ void omap2_gpio_prepare_for_idle(int off_mode)
if (!bank->mod_usage || !bank->loses_context)
continue;
- if (IS_ERR_VALUE(pm_runtime_put_sync(bank->dev) < 0))
+ if (IS_ERR_VALUE(pm_runtime_put_sync_suspend(bank->dev) < 0))
dev_err(bank->dev, "%s: GPIO bank %d "
"pm_runtime_put_sync failed\n",
__func__, bank->id);