summaryrefslogtreecommitdiffstats
path: root/drivers/thermal/samsung
diff options
context:
space:
mode:
authorNaveen Krishna Chatradhi <ch.naveen@samsung.com>2013-08-07 10:31:09 +0200
committerZhang Rui <rui.zhang@intel.com>2013-08-15 09:00:28 +0200
commitaa1ab4347ec40da87085abaa0db18268da2d0042 (patch)
tree5bde8d1190205f83a72554835cffddefafd73a03 /drivers/thermal/samsung
parentMerge branch 'for_3.12/exynos' of git://git.kernel.org/pub/scm/linux/kernel/g... (diff)
downloadlinux-aa1ab4347ec40da87085abaa0db18268da2d0042.tar.xz
linux-aa1ab4347ec40da87085abaa0db18268da2d0042.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>
Diffstat (limited to 'drivers/thermal/samsung')
-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;
}