diff options
Diffstat (limited to 'drivers/hwmon/pc87427.c')
| -rw-r--r-- | drivers/hwmon/pc87427.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/pc87427.c b/drivers/hwmon/pc87427.c index 29354fa26f81..2915bc4ad0d5 100644 --- a/drivers/hwmon/pc87427.c +++ b/drivers/hwmon/pc87427.c | |||
| @@ -484,7 +484,6 @@ static int __devexit pc87427_remove(struct platform_device *pdev) | |||
| 484 | struct resource *res; | 484 | struct resource *res; |
| 485 | int i; | 485 | int i; |
| 486 | 486 | ||
| 487 | platform_set_drvdata(pdev, NULL); | ||
| 488 | hwmon_device_unregister(data->class_dev); | 487 | hwmon_device_unregister(data->class_dev); |
| 489 | device_remove_file(&pdev->dev, &dev_attr_name); | 488 | device_remove_file(&pdev->dev, &dev_attr_name); |
| 490 | for (i = 0; i < 8; i++) { | 489 | for (i = 0; i < 8; i++) { |
| @@ -492,6 +491,7 @@ static int __devexit pc87427_remove(struct platform_device *pdev) | |||
| 492 | continue; | 491 | continue; |
| 493 | sysfs_remove_group(&pdev->dev.kobj, &pc87427_group_fan[i]); | 492 | sysfs_remove_group(&pdev->dev.kobj, &pc87427_group_fan[i]); |
| 494 | } | 493 | } |
| 494 | platform_set_drvdata(pdev, NULL); | ||
| 495 | kfree(data); | 495 | kfree(data); |
| 496 | 496 | ||
| 497 | res = platform_get_resource(pdev, IORESOURCE_IO, 0); | 497 | res = platform_get_resource(pdev, IORESOURCE_IO, 0); |
