From dcbe4d3ceb15d18b1309c38a01da604c76608aca Mon Sep 17 00:00:00 2001 From: Nishanth Menon Date: Mon, 8 Aug 2011 17:32:31 -0500 Subject: 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 --- drivers/gpio/gpio-omap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpio') 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); -- cgit v1.1