hwmon: abituguru3: Remove redundant platform_set_drvdata()
Subsystems (2)
PATCH 1/5 hwmon: abituguru3: 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.
Signed-off-by Sachin Kamat <[email protected]>
Cc Hans de Goede <[email protected]>
--- drivers/hwmon/abituguru3.c | 1 - 1 file changed, 1 deletion(-)
drivers/hwmon/abituguru3.c +0 -1
@@ -1079,7 +1079,6 @@ static int abituguru3_remove(struct platform_device *pdev)int i;struct abituguru3_data *data =platform_get_drvdata (pdev); -platform_set_drvdata (pdev,NULL );hwmon_device_unregister (data->hwmon_dev);for (i =0 ; data->sysfs_attr[i].dev_attr.attr.name; i++)device_remove_file (&pdev->dev, &data->sysfs_attr[i].dev_attr);
Signature · 7 lines
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 Hans de Goede <[email protected]>
Applied to -next.
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors