diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-22 06:04:28 +0400 |
---|---|---|
committer | Matthew Garrett <matthew.garrett@nebula.com> | 2013-09-05 16:52:18 +0400 |
commit | 18a0393543fa3b04278cce235d3d76a13c877b94 (patch) | |
tree | 2e21759f2cd60e21e1bd7f89c26d85e193b977af /drivers/platform/x86/intel_mid_thermal.c | |
parent | 0be18a8e1133fc2cf668c90360fcd1a767f64faa (diff) | |
download | linux-18a0393543fa3b04278cce235d3d76a13c877b94.tar.xz |
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/intel_mid_thermal.c')
-rw-r--r-- | drivers/platform/x86/intel_mid_thermal.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/platform/x86/intel_mid_thermal.c b/drivers/platform/x86/intel_mid_thermal.c index 81c491e74b34..93fab8b70ce1 100644 --- a/drivers/platform/x86/intel_mid_thermal.c +++ b/drivers/platform/x86/intel_mid_thermal.c @@ -542,7 +542,6 @@ static int mid_thermal_remove(struct platform_device *pdev) } kfree(pinfo); - platform_set_drvdata(pdev, NULL); /* Stop the ADC */ return configure_adc(0); |