hwmon: (max6650) Use devm function to register thermal device
authorGuenter Roeck <linux@roeck-us.net>
Fri, 7 Jun 2019 17:23:16 +0000 (10:23 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 24 Jun 2019 01:33:01 +0000 (18:33 -0700)
commit8e5e7ddd38b69ef48a2104cd663fab0e3dd03e14
tree88370763217f890960ef63c3c730a9212053706d
parent792eac1843196708e6f72e73b8f50e273721757e
hwmon: (max6650) Use devm function to register thermal device

Use devm_thermal_of_cooling_device_register to register the thermal
cooling device. This lets us drop the remove function.

At the same time, use 'dev' variable in probe function consistently.

Cc: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/max6650.c