diff options
Diffstat (limited to 'drivers/hwmon/f71805f.c')
-rw-r--r-- | drivers/hwmon/f71805f.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/f71805f.c b/drivers/hwmon/f71805f.c index e8b15047a6d3..8fe4d70d8f51 100644 --- a/drivers/hwmon/f71805f.c +++ b/drivers/hwmon/f71805f.c | |||
@@ -1242,12 +1242,12 @@ static int __devexit f71805f_remove(struct platform_device *pdev) | |||
1242 | struct resource *res; | 1242 | struct resource *res; |
1243 | int i; | 1243 | int i; |
1244 | 1244 | ||
1245 | platform_set_drvdata(pdev, NULL); | ||
1246 | hwmon_device_unregister(data->class_dev); | 1245 | hwmon_device_unregister(data->class_dev); |
1247 | sysfs_remove_group(&pdev->dev.kobj, &f71805f_group); | 1246 | sysfs_remove_group(&pdev->dev.kobj, &f71805f_group); |
1248 | for (i = 0; i < 4; i++) | 1247 | for (i = 0; i < 4; i++) |
1249 | sysfs_remove_group(&pdev->dev.kobj, &f71805f_group_optin[i]); | 1248 | sysfs_remove_group(&pdev->dev.kobj, &f71805f_group_optin[i]); |
1250 | sysfs_remove_group(&pdev->dev.kobj, &f71805f_group_pwm_freq); | 1249 | sysfs_remove_group(&pdev->dev.kobj, &f71805f_group_pwm_freq); |
1250 | platform_set_drvdata(pdev, NULL); | ||
1251 | kfree(data); | 1251 | kfree(data); |
1252 | 1252 | ||
1253 | res = platform_get_resource(pdev, IORESOURCE_IO, 0); | 1253 | res = platform_get_resource(pdev, IORESOURCE_IO, 0); |