diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-05-03 15:13:37 +0530 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2013-06-21 10:05:08 -0700 |
commit | 807f730105e986b3b2da711cfd94f22b92532f79 (patch) | |
tree | 5f1b19df3bc3020303439db8b13d931082642a42 /drivers/hwmon/coretemp.c | |
parent | bb6067e9800317614bf09eacf2eabe33c89ea7a5 (diff) | |
download | blackbird-op-linux-807f730105e986b3b2da711cfd94f22b92532f79.tar.gz blackbird-op-linux-807f730105e986b3b2da711cfd94f22b92532f79.zip |
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.c | 2 |
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) exit_name: device_remove_file(&pdev->dev, &pdata->name_attr); - platform_set_drvdata(pdev, NULL); exit_free: kfree(pdata); return err; @@ -595,7 +594,6 @@ static int coretemp_remove(struct platform_device *pdev) device_remove_file(&pdev->dev, &pdata->name_attr); hwmon_device_unregister(pdata->hwmon_dev); - platform_set_drvdata(pdev, NULL); kfree(pdata); return 0; } |