From: Naveen Krishna Chatradhi Date: Wed, 7 Aug 2013 08:31:09 +0000 (+0530) Subject: thermal: exynos_tmu: fix wrong error check for mapped memory X-Git-Tag: firefly_0821_release~176^2~5333^2~13 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=aa1ab4347ec40da87085abaa0db18268da2d0042;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Zhang Rui --- 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; }