summaryrefslogtreecommitdiff
path: root/drivers/thermal
diff options
context:
space:
mode:
authorNaveen Krishna Chatradhi <ch.naveen@samsung.com>2013-08-07 12:31:09 +0400
committerZhang Rui <rui.zhang@intel.com>2013-08-15 11:00:28 +0400
commitaa1ab4347ec40da87085abaa0db18268da2d0042 (patch)
tree5bde8d1190205f83a72554835cffddefafd73a03 /drivers/thermal
parent9c532d1710326c0f6f5d46d7f78d9da1a03b7a52 (diff)
downloadlinux-aa1ab4347ec40da87085abaa0db18268da2d0042.tar.xz
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/thermal')
-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)
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;
}