diff options
author | Nishanth Menon <nm@ti.com> | 2011-08-08 17:32:31 -0500 |
---|---|---|
committer | Nishanth Menon <nm@ti.com> | 2011-08-29 19:35:19 -0500 |
commit | dcbe4d3ceb15d18b1309c38a01da604c76608aca (patch) | |
tree | 02724ba6f89a01602a2a319d0f8a9c6e64b7c933 /drivers/gpio | |
parent | bc25361c2c1d3aa3d6a66b777da81fa783fa0e77 (diff) | |
download | kernel_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.c | 2 |
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); |