else
ret = rk808_rtc_stop_alarm(rk808_rtc);
- if (ret != 0)
+ if (ret < 0)
dev_err(&pdev->dev, "Failed to update RTC alarm: %d\n", ret);
return 0;
if (rk808_rtc->alarm_enabled) {
ret = rk808_rtc_start_alarm(rk808_rtc);
- if (ret != 0)
+ if (ret <0)
dev_err(&pdev->dev,
"Failed to restart RTC alarm: %d\n", ret);
}
int ret;
ret = rk808_rtc_stop_alarm(rk808_rtc);
- if (ret != 0)
+ if (ret < 0)
dev_err(&pdev->dev, "Failed to stop RTC alarm: %d\n", ret);
return 0;
else
ret = rk818_rtc_stop_alarm(rk818_rtc);
- if (ret != 0)
+ if (ret < 0)
dev_err(&pdev->dev, "Failed to update RTC alarm: %d\n", ret);
return 0;
if (rk818_rtc->alarm_enabled) {
ret = rk818_rtc_start_alarm(rk818_rtc);
- if (ret != 0)
+ if (ret < 0)
dev_err(&pdev->dev,
"Failed to restart RTC alarm: %d\n", ret);
}
int ret;
ret = rk818_rtc_stop_alarm(rk818_rtc);
- if (ret != 0)
+ if (ret < 0)
dev_err(&pdev->dev, "Failed to stop RTC alarm: %d\n", ret);
return 0;