Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84a34575 authored by xinhui.pan's avatar xinhui.pan Committed by Linus Walleij
Browse files

gpio: intel-mid: fix the incorrect return of idle callback



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: default avatarbo.he <bo.he@intel.com>
Signed-off-by: default avatarxinhui.pan <xinhuiX.pan@intel.com>
Signed-off-by: default avatarDavid Cohen <david.a.cohen@linux.intel.com>
Reviewed-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent cffcc92e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -394,8 +394,8 @@ static const struct irq_domain_ops intel_gpio_irq_ops = {

static int intel_gpio_runtime_idle(struct device *dev)
{
	pm_schedule_suspend(dev, 500);
	return -EBUSY;
	int err = pm_schedule_suspend(dev, 500);
	return err ?: -EBUSY;
}

static const struct dev_pm_ops intel_gpio_pm_ops = {