Commit bb6067e9 authored by Sachin Kamat's avatar Sachin Kamat Committed by Guenter Roeck

hwmon: (abituguru3) Remove redundant platform_set_drvdata()

Commit 0998d063 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Cc: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 7d132055
...@@ -1079,7 +1079,6 @@ static int abituguru3_remove(struct platform_device *pdev) ...@@ -1079,7 +1079,6 @@ static int abituguru3_remove(struct platform_device *pdev)
int i; int i;
struct abituguru3_data *data = platform_get_drvdata(pdev); struct abituguru3_data *data = platform_get_drvdata(pdev);
platform_set_drvdata(pdev, NULL);
hwmon_device_unregister(data->hwmon_dev); hwmon_device_unregister(data->hwmon_dev);
for (i = 0; data->sysfs_attr[i].dev_attr.attr.name; i++) for (i = 0; data->sysfs_attr[i].dev_attr.attr.name; i++)
device_remove_file(&pdev->dev, &data->sysfs_attr[i].dev_attr); device_remove_file(&pdev->dev, &data->sysfs_attr[i].dev_attr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment