diff options
author | Guenter Roeck <linux@roeck-us.net> | 2023-03-04 08:56:53 -0800 |
---|---|---|
committer | Wim Van Sebroeck <wim@linux-watchdog.org> | 2023-04-22 12:53:39 +0200 |
commit | 89baf2522ba3a82b7aa61dba023a8092b8ff1d5b (patch) | |
tree | 66ef9729ea63ac9919eb36d48714e08f006d41c0 /drivers/rtc | |
parent | 9b31b1ea125ca2e734ae89badc0c3073b4445842 (diff) |
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>
Diffstat (limited to 'drivers/rtc')
0 files changed, 0 insertions, 0 deletions