aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/thermal/int340x_thermal/int3403_thermal.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/thermal/int340x_thermal/int3403_thermal.c b/drivers/thermal/int340x_thermal/int3403_thermal.c
index 8a7f24dd9315..0c19fcd56a0d 100644
--- a/drivers/thermal/int340x_thermal/int3403_thermal.c
+++ b/drivers/thermal/int340x_thermal/int3403_thermal.c
@@ -194,6 +194,7 @@ static int int3403_cdev_add(struct int3403_priv *priv)
194 return -EFAULT; 194 return -EFAULT;
195 } 195 }
196 196
197 priv->priv = obj;
197 obj->max_state = p->package.count - 1; 198 obj->max_state = p->package.count - 1;
198 obj->cdev = 199 obj->cdev =
199 thermal_cooling_device_register(acpi_device_bid(priv->adev), 200 thermal_cooling_device_register(acpi_device_bid(priv->adev),
@@ -201,8 +202,6 @@ static int int3403_cdev_add(struct int3403_priv *priv)
201 if (IS_ERR(obj->cdev)) 202 if (IS_ERR(obj->cdev))
202 result = PTR_ERR(obj->cdev); 203 result = PTR_ERR(obj->cdev);
203 204
204 priv->priv = obj;
205
206 kfree(buf.pointer); 205 kfree(buf.pointer);
207 /* TODO: add ACPI notification support */ 206 /* TODO: add ACPI notification support */
208 207