]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: mtk_wdt: use platform_get_irq_optional
authorTzung-Bi Shih <tzungbi@google.com>
Wed, 8 Dec 2021 09:55:55 +0000 (17:55 +0800)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Wed, 5 Jan 2022 09:33:16 +0000 (10:33 +0100)
commit23be09c550143e8ac92ece362615107bbe22b981
tree1fac20ba40046f754a3a92d908344052154a45b1
parent1a9598cfd9e89d235693dc61d735f4ff57f71657
watchdog: mtk_wdt: use platform_get_irq_optional

The watchdog pre-timeout (bark) interrupt is optional.  Use
platform_get_irq_optional() to avoid seeing such following
error message:
>>> mtk-wdt 10007000.watchdog: IRQ index 0 not found

Signed-off-by: Tzung-Bi Shih <tzungbi@google.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20211208095555.4099551-1-tzungbi@google.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/mtk_wdt.c