diff options
Diffstat (limited to 'drivers/rtc/rtc-cros-ec.c')
| -rw-r--r-- | drivers/rtc/rtc-cros-ec.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/drivers/rtc/rtc-cros-ec.c b/drivers/rtc/rtc-cros-ec.c index e5444296075e..4d6bf9304ceb 100644 --- a/drivers/rtc/rtc-cros-ec.c +++ b/drivers/rtc/rtc-cros-ec.c @@ -298,7 +298,7 @@ static int cros_ec_rtc_suspend(struct device *dev)  	struct cros_ec_rtc *cros_ec_rtc = dev_get_drvdata(&pdev->dev);  	if (device_may_wakeup(dev)) -		enable_irq_wake(cros_ec_rtc->cros_ec->irq); +		return enable_irq_wake(cros_ec_rtc->cros_ec->irq);  	return 0;  } @@ -309,7 +309,7 @@ static int cros_ec_rtc_resume(struct device *dev)  	struct cros_ec_rtc *cros_ec_rtc = dev_get_drvdata(&pdev->dev);  	if (device_may_wakeup(dev)) -		disable_irq_wake(cros_ec_rtc->cros_ec->irq); +		return disable_irq_wake(cros_ec_rtc->cros_ec->irq);  	return 0;  } |