|
@@ -584,6 +584,9 @@ enum hrtimer_restart rtc_pie_update_irq(struct hrtimer *timer)
|
|
void rtc_update_irq(struct rtc_device *rtc,
|
|
void rtc_update_irq(struct rtc_device *rtc,
|
|
unsigned long num, unsigned long events)
|
|
unsigned long num, unsigned long events)
|
|
{
|
|
{
|
|
|
|
+ if (unlikely(IS_ERR_OR_NULL(rtc)))
|
|
|
|
+ return;
|
|
|
|
+
|
|
pm_stay_awake(rtc->dev.parent);
|
|
pm_stay_awake(rtc->dev.parent);
|
|
schedule_work(&rtc->irqwork);
|
|
schedule_work(&rtc->irqwork);
|
|
}
|
|
}
|