hwmon: (ftsteutates) Use devm_watchdog_register_device()
authorArmin Wolf <W_Armin@gmx.de>
Sat, 24 Dec 2022 04:18:55 +0000 (05:18 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 3 Feb 2023 15:30:09 +0000 (07:30 -0800)
commite1515a749276efeff18b091f3367c3e4640ad497
tree9fc1ec627ade548d2d59a189aee0324360d496fd
parentebd4bfee2b972d34a2f72f81767d0cf47e6c914b
hwmon: (ftsteutates) Use devm_watchdog_register_device()

Use devm_watchdog_register_device() to let devres take care
of unregistering the watchdog at device removal. Remove the
now pointless fts_remove() function.

Tested on a Fujitsu DS3401-B1.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20221224041855.83981-4-W_Armin@gmx.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ftsteutates.c