aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/npcm750-pwm-fan.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/npcm750-pwm-fan.c')
-rw-r--r--drivers/hwmon/npcm750-pwm-fan.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/hwmon/npcm750-pwm-fan.c b/drivers/hwmon/npcm750-pwm-fan.c
index 1dc0cd452498..09aaefa6fdb8 100644
--- a/drivers/hwmon/npcm750-pwm-fan.c
+++ b/drivers/hwmon/npcm750-pwm-fan.c
@@ -846,10 +846,8 @@ static int npcm7xx_create_pwm_cooling(struct device *dev,
846 snprintf(cdev->name, THERMAL_NAME_LENGTH, "%pOFn%d", child, 846 snprintf(cdev->name, THERMAL_NAME_LENGTH, "%pOFn%d", child,
847 pwm_port); 847 pwm_port);
848 848
849 cdev->tcdev = thermal_of_cooling_device_register(child, 849 cdev->tcdev = devm_thermal_of_cooling_device_register(dev, child,
850 cdev->name, 850 cdev->name, cdev, &npcm7xx_pwm_cool_ops);
851 cdev,
852 &npcm7xx_pwm_cool_ops);
853 if (IS_ERR(cdev->tcdev)) 851 if (IS_ERR(cdev->tcdev))
854 return PTR_ERR(cdev->tcdev); 852 return PTR_ERR(cdev->tcdev);
855 853