On some platforms (eg: RZ/{G2UL,Five} SMARC EVK), there is no IRQ populated by default. Add irq optional support. v2->v3: * Dropped clearing redundant RTC_FEATURE_UPDATE_INTERRUPT bit * Added Rb tag from Geert for patch#1. v1->v2: * Make RTC patch series separate from dt patches. * Propagated real errors for platform_get_irq_byname_optional(). * Cleared ALARM feature bit for non-irq case. * Added Rb tag from Geert for patch#2 and #3 * Restored dev_err() for devm_request_threaded_irq() as an RTC can wake up a system without an IRQ. Biju Das (3): rtc: da9063: Make IRQ as optional rtc: da9063: Use device_get_match_data() rtc: da9063: Use dev_err_probe() drivers/rtc/rtc-da9063.c | 88 ++++++++++++++++++---------------------- 1 file changed, 40 insertions(+), 48 deletions(-) -- 2.25.1