hwmon: (dell-smm-hwmon) Use devm_add_action_or_reset()
authorArmin Wolf <W_Armin@gmx.de>
Wed, 28 Jul 2021 22:15:54 +0000 (00:15 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 17 Aug 2021 21:54:26 +0000 (14:54 -0700)
commita2cb66b476e282b4fc1ce8b69f1fae0f9991d0b6
treea607bc40180df0fdf46a2061d3e950bc4d59ebe8
parentc9363cdf3aab9f48c3c8bd8bfa77dcfd3a3a92d2
hwmon: (dell-smm-hwmon) Use devm_add_action_or_reset()

Use devm_add_action_or_reset() for calling i8k_exit_procfs()
so the remove() function in dell_smm_driver can be omitted.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Reviewed-by: Pali Rohár <pali@kernel.org>
Tested-by: Pali Rohár <pali@kernel.org>
Link: https://lore.kernel.org/r/20210728221557.8891-4-W_Armin@gmx.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/dell-smm-hwmon.c