[PATCH v2] watchdog: stm32_iwdg: fix error message during driver probe

Marek Vasut marex at denx.de
Thu Dec 12 03:15:46 PST 2024


On 12/12/24 11:20 AM, Clément Le Goffic wrote:
> The commit 3ab1663af6c1 ("watchdog: stm32_iwdg: Add pretimeout support")
> introduces the support for the pre-timeout interrupt.
> 
> The support for this interrupt is optional but the driver uses the
> platform_get_irq() wich produces an error message during the driver
> probe if we don't have any `interrupts` property in the DT.
> 
> Use the platform_get_irq_optional() API to get rid of the error message
> as this property is optional.
> 
> Fixes: 3ab1663af6c1 ("watchdog: stm32_iwdg: Add pretimeout support")
> Signed-off-by: Clément Le Goffic <clement.legoffic at foss.st.com>
Reviewed-by: Marek Vasut <marex at denx.de>



More information about the linux-arm-kernel mailing list