|
@@ -80,11 +80,6 @@ static int tsens_register(struct tsens_device *tmdev)
|
|
|
{
|
|
|
int i;
|
|
|
struct thermal_zone_device *tzd;
|
|
|
- u32 *hw_id, n = tmdev->num_sensors;
|
|
|
-
|
|
|
- hw_id = devm_kcalloc(tmdev->dev, n, sizeof(u32), GFP_KERNEL);
|
|
|
- if (!hw_id)
|
|
|
- return -ENOMEM;
|
|
|
|
|
|
for (i = 0; i < tmdev->num_sensors; i++) {
|
|
|
tmdev->sensor[i].tmdev = tmdev;
|