diff options
author | Guenter Roeck <[email protected]> | 2019-04-18 12:58:16 -0700 |
---|---|---|
committer | Eduardo Valentin <[email protected]> | 2019-05-14 07:00:44 -0700 |
commit | 389c0ad1d61ec5790174ecb0f01eac13423a18e1 (patch) | |
tree | 11e6ad708c4ec5164ca4d72b730960786ebaf5b8 /scripts/gdb/linux/tasks.py | |
parent | e380ea8117ce8c83c5da7063a3587a728132de0b (diff) |
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 <[email protected]>
Cc: Joel Stanley <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Reviewed-by: Patrick Venture <[email protected]>
Signed-off-by: Eduardo Valentin <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions