|
@@ -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);
|