Hi Miquel, On Fri, Apr 29, 2022 at 12:46 PM Miquel Raynal <miquel.raynal@xxxxxxxxxxx> wrote: > The RZN1 RTC can trigger an interrupt when reaching a particular date up > to 7 days ahead. Bring support for this alarm. > > One drawback though, the granularity is about a minute. > > Signed-off-by: Miquel Raynal <miquel.raynal@xxxxxxxxxxx> Thanks for your patch! > --- a/drivers/rtc/rtc-rzn1.c > +++ b/drivers/rtc/rtc-rzn1.c > @@ -179,6 +272,10 @@ static int rzn1_rtc_probe(struct platform_device *pdev) > if (IS_ERR(rtc->base)) > return dev_err_probe(&pdev->dev, PTR_ERR(rtc->base), "Missing reg\n"); > > + alarm_irq = platform_get_irq(pdev, 0); > + if (alarm_irq < 0) > + return dev_err_probe(&pdev->dev, alarm_irq, "Missing timer IRQ\n"); No need to print a message, platform_get_irq() already does that. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds