diff options
| author | Guenter Roeck <linux@roeck-us.net> | 2019-04-18 12:58:17 -0700 |
|---|---|---|
| committer | Eduardo Valentin <edubezval@gmail.com> | 2019-05-14 07:00:45 -0700 |
| commit | 9534784550ab02a4394f499ff60765e89bc88f22 (patch) | |
| tree | a98ed4ffa76c8805a196eda519af90e1c5e54ba6 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | hwmon: (aspeed-pwm-tacho) Use devm_thermal_of_cooling_device_register (diff) | |
| download | linux-9534784550ab02a4394f499ff60765e89bc88f22.tar.gz linux-9534784550ab02a4394f499ff60765e89bc88f22.zip | |
hwmon: (gpio-fan) Use devm_thermal_of_cooling_device_register
Call devm_thermal_of_cooling_device_register() to register the cooling
device. Also use devm_add_action_or_reset() to stop the fan on device
removal. This fixes a race condition since the fan was stopped before
the hwmon device was removed.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
