summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2019-04-18 12:58:17 -0700
committerEduardo Valentin <edubezval@gmail.com>2019-05-14 07:00:45 -0700
commit9534784550ab02a4394f499ff60765e89bc88f22 (patch)
treea98ed4ffa76c8805a196eda519af90e1c5e54ba6 /drivers/mtd/ubi
parent389c0ad1d61ec5790174ecb0f01eac13423a18e1 (diff)
downloadlinux-9534784550ab02a4394f499ff60765e89bc88f22.tar.gz
linux-9534784550ab02a4394f499ff60765e89bc88f22.tar.bz2
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 'drivers/mtd/ubi')
0 files changed, 0 insertions, 0 deletions