We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b701192 commit c926979Copy full SHA for c926979
drivers/rtc/class.c
@@ -240,8 +240,7 @@ static struct rtc_device *rtc_allocate_device(void)
240
/* Init uie timer */
241
rtc_timer_init(&rtc->uie_rtctimer, rtc_uie_update_irq, rtc);
242
/* Init pie timer */
243
- hrtimer_init(&rtc->pie_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
244
- rtc->pie_timer.function = rtc_pie_update_irq;
+ hrtimer_setup(&rtc->pie_timer, rtc_pie_update_irq, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
245
rtc->pie_enabled = 0;
246
247
set_bit(RTC_FEATURE_ALARM, rtc->features);
0 commit comments