hwmon: ntc_thermistor: Remove redundant platform_set_drvdata()
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
@@ -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
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
Signed-off-by Sachin Kamat <[email protected]>Cc MyungJoo Ham <[email protected]>
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
-2hwmon_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
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.Signed-off-by Sachin Kamat <[email protected]>Cc MyungJoo Ham <[email protected]>
Applied to -next
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors