summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaveen Krishna Chatradhi <ch.naveen@samsung.com>2013-08-07 14:01:09 +0530
committerMyungJoo Ham <myungjoo.ham@samsung.com>2013-11-15 13:52:52 +0900
commit3bbc1028565351fbddc62843a3aa16cc49286d8c (patch)
tree5accc8347391de29c64aa1b700639811b94816d0
parent11defc080ea2ba975c34db7c83963f427c1bd9b7 (diff)
downloadlinux-3.10-3bbc1028565351fbddc62843a3aa16cc49286d8c.tar.gz
linux-3.10-3bbc1028565351fbddc62843a3aa16cc49286d8c.tar.bz2
linux-3.10-3bbc1028565351fbddc62843a3aa16cc49286d8c.zip
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>
-rw-r--r--drivers/thermal/samsung/exynos_tmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c
index ec01dfe4bef..a033dbbf979 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;
}