summaryrefslogtreecommitdiff
path: root/patches.tizen/0919-Thermal-dove_thermal-Remove-redundant-platform_set_d.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches.tizen/0919-Thermal-dove_thermal-Remove-redundant-platform_set_d.patch')
-rw-r--r--patches.tizen/0919-Thermal-dove_thermal-Remove-redundant-platform_set_d.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/patches.tizen/0919-Thermal-dove_thermal-Remove-redundant-platform_set_d.patch b/patches.tizen/0919-Thermal-dove_thermal-Remove-redundant-platform_set_d.patch
new file mode 100644
index 00000000000..6daac865a4d
--- /dev/null
+++ b/patches.tizen/0919-Thermal-dove_thermal-Remove-redundant-platform_set_d.patch
@@ -0,0 +1,35 @@
+From 73be680856da40387a34d9f62746a70443a5e8a9 Mon Sep 17 00:00:00 2001
+From: Sachin Kamat <sachin.kamat@linaro.org>
+Date: Fri, 3 May 2013 09:57:09 +0000
+Subject: [PATCH 0919/1302] Thermal: dove_thermal: 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: Andrew Lunn <andrew@lunn.ch>
+Acked-by: Andrew Lunn <andrew@lunn.ch>
+Acked-by: Eduardo Valentin <eduardo.valentin@ti.com>
+Signed-off-by: Zhang Rui <rui.zhang@intel.com>
+Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
+---
+ drivers/thermal/dove_thermal.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/drivers/thermal/dove_thermal.c b/drivers/thermal/dove_thermal.c
+index a088d13..954d269 100644
+--- a/drivers/thermal/dove_thermal.c
++++ b/drivers/thermal/dove_thermal.c
+@@ -178,7 +178,6 @@ static int dove_thermal_exit(struct platform_device *pdev)
+ platform_get_drvdata(pdev);
+
+ thermal_zone_device_unregister(dove_thermal);
+- platform_set_drvdata(pdev, NULL);
+
+ return 0;
+ }
+--
+1.8.3.2
+