aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/abituguru3.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-05-03 05:43:36 -0400
committerGuenter Roeck <linux@roeck-us.net>2013-06-21 13:05:03 -0400
commitbb6067e9800317614bf09eacf2eabe33c89ea7a5 (patch)
treefeb737648bd23a77596df50c37c811ec9771d595 /drivers/hwmon/abituguru3.c
parent7d132055814ef17a6c7b69f342244c410a5e000f (diff)
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 <sachin.kamat@linaro.org> Cc: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/abituguru3.c')
-rw-r--r--drivers/hwmon/abituguru3.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/hwmon/abituguru3.c b/drivers/hwmon/abituguru3.c
index 1d2da31c27c6..0cac8c0b001a 100644
--- a/drivers/hwmon/abituguru3.c
+++ b/drivers/hwmon/abituguru3.c
@@ -1079,7 +1079,6 @@ static int abituguru3_remove(struct platform_device *pdev)
1079 int i; 1079 int i;
1080 struct abituguru3_data *data = platform_get_drvdata(pdev); 1080 struct abituguru3_data *data = platform_get_drvdata(pdev);
1081 1081
1082 platform_set_drvdata(pdev, NULL);
1083 hwmon_device_unregister(data->hwmon_dev); 1082 hwmon_device_unregister(data->hwmon_dev);
1084 for (i = 0; data->sysfs_attr[i].dev_attr.attr.name; i++) 1083 for (i = 0; data->sysfs_attr[i].dev_attr.attr.name; i++)
1085 device_remove_file(&pdev->dev, &data->sysfs_attr[i].dev_attr); 1084 device_remove_file(&pdev->dev, &data->sysfs_attr[i].dev_attr);