diff options
Diffstat (limited to 'drivers/hwmon/i5k_amb.c')
-rw-r--r-- | drivers/hwmon/i5k_amb.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/hwmon/i5k_amb.c b/drivers/hwmon/i5k_amb.c index b87c2ccee06b..de058c278aa9 100644 --- a/drivers/hwmon/i5k_amb.c +++ b/drivers/hwmon/i5k_amb.c | |||
@@ -556,7 +556,6 @@ static int i5k_amb_probe(struct platform_device *pdev) | |||
556 | 556 | ||
557 | err_init_failed: | 557 | err_init_failed: |
558 | iounmap(data->amb_mmio); | 558 | iounmap(data->amb_mmio); |
559 | platform_set_drvdata(pdev, NULL); | ||
560 | err_map_failed: | 559 | err_map_failed: |
561 | release_mem_region(data->amb_base, data->amb_len); | 560 | release_mem_region(data->amb_base, data->amb_len); |
562 | err: | 561 | err: |
@@ -576,7 +575,6 @@ static int i5k_amb_remove(struct platform_device *pdev) | |||
576 | kfree(data->attrs); | 575 | kfree(data->attrs); |
577 | iounmap(data->amb_mmio); | 576 | iounmap(data->amb_mmio); |
578 | release_mem_region(data->amb_base, data->amb_len); | 577 | release_mem_region(data->amb_base, data->amb_len); |
579 | platform_set_drvdata(pdev, NULL); | ||
580 | kfree(data); | 578 | kfree(data); |
581 | return 0; | 579 | return 0; |
582 | } | 580 | } |