aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorNaveen Krishna Chatradhi <ch.naveen@samsung.com>2013-08-07 04:31:09 -0400
committerZhang Rui <rui.zhang@intel.com>2013-08-15 03:00:28 -0400
commitaa1ab4347ec40da87085abaa0db18268da2d0042 (patch)
tree5bde8d1190205f83a72554835cffddefafd73a03 /drivers
parent9c532d1710326c0f6f5d46d7f78d9da1a03b7a52 (diff)
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>
Diffstat (limited to 'drivers')
-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 ec01dfe4bef3..a033dbbf979e 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)
592 592
593 data->base_common = devm_ioremap(&pdev->dev, res.start, 593 data->base_common = devm_ioremap(&pdev->dev, res.start,
594 resource_size(&res)); 594 resource_size(&res));
595 if (!data->base) { 595 if (!data->base_common) {
596 dev_err(&pdev->dev, "Failed to ioremap memory\n"); 596 dev_err(&pdev->dev, "Failed to ioremap memory\n");
597 return -ENOMEM; 597 return -ENOMEM;
598 } 598 }