[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <52E76F71.4080304@intel.com>
Date: Tue, 28 Jan 2014 16:50:57 +0800
From: "xinhui.pan" <xinhuix.pan@...el.com>
To: linux-kernel@...r.kernel.org
CC: linux-gpio@...r.kernel.org, david.a.cohen@...ux.intel.com,
linus.walleij@...aro.org, gnurou@...il.com,
yanmin_zhang@...ux.intel.com
Subject: [PATCH] gpio-intel-mid: fix the incorrect return of idle callback
From: "xinhui.pan" <xinhuiX.pan@...el.com>
intel_gpio_runtime_idle should return correct error code if it do fail.
make it more correct even though -EBUSY is the most possible return value.
Signed-off-by: bo.he <bo.he@...el.com>
Signed-off-by: xinhui.pan <xinhuiX.pan@...el.com>
---
drivers/gpio/gpio-intel-mid.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-intel-mid.c b/drivers/gpio/gpio-intel-mid.c
index d1b50ef..05749a3 100644
--- a/drivers/gpio/gpio-intel-mid.c
+++ b/drivers/gpio/gpio-intel-mid.c
@@ -394,7 +394,9 @@ static const struct irq_domain_ops intel_gpio_irq_ops = {
static int intel_gpio_runtime_idle(struct device *dev)
{
- pm_schedule_suspend(dev, 500);
+ int err = pm_schedule_suspend(dev, 500);
+ if (err)
+ return err;
return -EBUSY;
}
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists