summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/compal-laptop.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-08-22 11:04:28 +0900
committerMatthew Garrett <matthew.garrett@nebula.com>2013-09-05 08:52:18 -0400
commit18a0393543fa3b04278cce235d3d76a13c877b94 (patch)
tree2e21759f2cd60e21e1bd7f89c26d85e193b977af /drivers/platform/x86/compal-laptop.c
parent0be18a8e1133fc2cf668c90360fcd1a767f64faa (diff)
platform: x86: remove unnecessary platform_set_drvdata()
The driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
Diffstat (limited to 'drivers/platform/x86/compal-laptop.c')
-rw-r--r--drivers/platform/x86/compal-laptop.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/platform/x86/compal-laptop.c b/drivers/platform/x86/compal-laptop.c
index 52f89fc1325f..eaa78edb1f4e 100644
--- a/drivers/platform/x86/compal-laptop.c
+++ b/drivers/platform/x86/compal-laptop.c
@@ -1083,7 +1083,6 @@ static int compal_remove(struct platform_device *pdev)
hwmon_device_unregister(data->hwmon_dev);
power_supply_unregister(&data->psy);
- platform_set_drvdata(pdev, NULL);
kfree(data);
sysfs_remove_group(&pdev->dev.kobj, &compal_attribute_group);