summaryrefslogtreecommitdiff
path: root/patches.tizen/0979-thermal-exynos_tmu-fix-wrong-error-check-for-mapped-.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches.tizen/0979-thermal-exynos_tmu-fix-wrong-error-check-for-mapped-.patch')
-rw-r--r--patches.tizen/0979-thermal-exynos_tmu-fix-wrong-error-check-for-mapped-.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/patches.tizen/0979-thermal-exynos_tmu-fix-wrong-error-check-for-mapped-.patch b/patches.tizen/0979-thermal-exynos_tmu-fix-wrong-error-check-for-mapped-.patch
new file mode 100644
index 00000000000..683b2d6f7ed
--- /dev/null
+++ b/patches.tizen/0979-thermal-exynos_tmu-fix-wrong-error-check-for-mapped-.patch
@@ -0,0 +1,32 @@
+From 3bbc1028565351fbddc62843a3aa16cc49286d8c Mon Sep 17 00:00:00 2001
+From: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
+Date: Wed, 7 Aug 2013 14:01:09 +0530
+Subject: [PATCH 0979/1302] thermal: exynos_tmu: fix wrong error check for
+ mapped memory
+
+The error check is checking for a "base" mapped memory base
+instead of "base_common". Fixing the same.
+
+Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
+Signed-off-by: Zhang Rui <rui.zhang@intel.com>
+Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
+---
+ drivers/thermal/samsung/exynos_tmu.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c
+index ec01dfe..a033dbb 100644
+--- a/drivers/thermal/samsung/exynos_tmu.c
++++ b/drivers/thermal/samsung/exynos_tmu.c
+@@ -592,7 +592,7 @@ static int exynos_map_dt_data(struct platform_device *pdev)
+
+ data->base_common = devm_ioremap(&pdev->dev, res.start,
+ resource_size(&res));
+- if (!data->base) {
++ if (!data->base_common) {
+ dev_err(&pdev->dev, "Failed to ioremap memory\n");
+ return -ENOMEM;
+ }
+--
+1.8.3.2
+