Searched hist:"389 c0ad1d61ec5790174ecb0f01eac13423a18e1" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/hwmon/ |
H A D | aspeed-pwm-tacho.c | diff 389c0ad1d61ec5790174ecb0f01eac13423a18e1 Thu Apr 18 21:58:16 CEST 2019 Guenter Roeck <linux@roeck-us.net> hwmon: (aspeed-pwm-tacho) Use devm_thermal_of_cooling_device_register
Use devm_thermal_of_cooling_device_register() to register the cooling device. As a side effect, this fixes a driver bug: thermal_cooling_device_unregister() was not called on removal.
Fixes: f198907d2ff6d ("hwmon: (aspeed-pwm-tacho) cooling device support.") Cc: Mykola Kostenok <c_mykolak@mellanox.com> Cc: Joel Stanley <joel@jms.id.au> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Patrick Venture <venture@google.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
|