mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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: bo.he <[email protected]> Signed-off-by: xinhui.pan <[email protected]> Signed-off-by: David Cohen <[email protected]> Reviewed-by: Felipe Balbi <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
cffcc92e96
commit
84a34575fe
1 changed files with 2 additions and 2 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue