aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/coretemp.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-05-03 05:43:37 -0400
committerGuenter Roeck <linux@roeck-us.net>2013-06-21 13:05:08 -0400
commit807f730105e986b3b2da711cfd94f22b92532f79 (patch)
tree5f1b19df3bc3020303439db8b13d931082642a42 /drivers/hwmon/coretemp.c
parentbb6067e9800317614bf09eacf2eabe33c89ea7a5 (diff)
hwmon: (coretemp) Remove redundant platform_set_drvdata()
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no driver is bound) removes the need to set driver data field to NULL. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Cc: Rudolf Marek <r.marek@assembler.cz> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/coretemp.c')
-rw-r--r--drivers/hwmon/coretemp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c
index 658ce3a8717f..ade35cf3f488 100644
--- a/drivers/hwmon/coretemp.c
+++ b/drivers/hwmon/coretemp.c
@@ -578,7 +578,6 @@ static int coretemp_probe(struct platform_device *pdev)
578 578
579exit_name: 579exit_name:
580 device_remove_file(&pdev->dev, &pdata->name_attr); 580 device_remove_file(&pdev->dev, &pdata->name_attr);
581 platform_set_drvdata(pdev, NULL);
582exit_free: 581exit_free:
583 kfree(pdata); 582 kfree(pdata);
584 return err; 583 return err;
@@ -595,7 +594,6 @@ static int coretemp_remove(struct platform_device *pdev)
595 594
596 device_remove_file(&pdev->dev, &pdata->name_attr); 595 device_remove_file(&pdev->dev, &pdata->name_attr);
597 hwmon_device_unregister(pdata->hwmon_dev); 596 hwmon_device_unregister(pdata->hwmon_dev);
598 platform_set_drvdata(pdev, NULL);
599 kfree(pdata); 597 kfree(pdata);
600 return 0; 598 return 0;
601} 599}