watchdog: s3c2410_wdt: Use devm_add_action_or_reset() to disable watchdog
authorGuenter Roeck <linux@roeck-us.net>
Sat, 4 Mar 2023 16:56:53 +0000 (08:56 -0800)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sat, 22 Apr 2023 10:53:39 +0000 (12:53 +0200)
commit89baf2522ba3a82b7aa61dba023a8092b8ff1d5b
tree66ef9729ea63ac9919eb36d48714e08f006d41c0
parent9b31b1ea125ca2e734ae89badc0c3073b4445842
watchdog: s3c2410_wdt: Use devm_add_action_or_reset() to disable watchdog

Use devm_add_action_or_reset() to disable the watchdog when the driver
is removed to simplify the code. With this in place, we can use
devm_watchdog_register_device() to register the watchdog, and the removal
function is no longer necessary.

Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20230304165653.2179835-2-linux@roeck-us.net
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/s3c2410_wdt.c