Skip to contentSkip to conversation

hwmon: ntc_thermistor: Remove redundant platform_set_drvdata()

PATCH Applied Sachin Kamat 3 participants 3 messages May 3, 2013 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

PATCH 4/5 hwmon: ntc_thermistor: Remove redundant platform_set_drvdata()

Commit 0998d06310 (device-core: Ensure drvdata = NULL when no driver is bound) removes the need to set driver data field to NULL.

---
 drivers/hwmon/ntc_thermistor.c |    1 -
 1 file changed, 1 deletion(-)
drivers/hwmon/ntc_thermistor.c +0 -1
index d6d640a..830a842 100644
@@ -514,7 +514,6 @@ static int ntc_thermistor_remove(struct platform_device *pdev)
 	hwmon_device_unregister(data->hwmon_dev);
 	sysfs_remove_group(&data->dev->kobj, &ntc_attr_group);
 	ntc_iio_channel_release(pdata);
-	platform_set_drvdata(pdev, NULL);
 
 	return 0;
 }
Signature · 7 lines
1.7.9.5


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Acked-by on v1 4/5
#1 lore raw
Quoted 1 line

Commit 0998d06310 (device-core: Ensure drvdata = NULL when no driver is

bound) removes the need to set driver data field to NULL.

Quoted 3 lines

Review

Quoted 5 lines
---
 drivers/hwmon/ntc_thermistor.c |    1 -
 1 file changed, 1 deletion(-)
(quoted diff) +0 -0

b/drivers/hwmon/ntc_thermistor.c index d6d640a..830a842 100644

drivers/hwmon/ntc_thermistor.c static int ntc_thermistor_remove(struct

Quoted 3 lines
drivers/hwmon/ntc_thermistor.c +0 -0
@@ -514,7 +514,6 @@ static int ntc_thermistor_remove(struct

platform_device *pdev)

Quoted 10 lines
drivers/hwmon/ntc_thermistor.c +0 -2
 	hwmon_device_unregister(data->hwmon_dev);
 	sysfs_remove_group(&data->dev->kobj, &ntc_attr_group);
 	ntc_iio_channel_release(pdata);
-	platform_set_drvdata(pdev, NULL);
 
 	return 0;
 }
--

1.7.9.5

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

maintainer Applied
#2 lore raw
In reply to Sachin Kamat
Quoted 6 lines · Sachin Kamat

Commit 0998d06310 (device-core: Ensure drvdata = NULL when no driver is bound) removes the need to set driver data field to NULL.

Applied to -next

Thanks,
Guenter

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors