Skip to content

Commit

Permalink
thermal: exynos_tmu: fix wrong error check for mapped memory
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Naveen Krishna Chatradhi authored and Zhang Rui committed Aug 15, 2013
1 parent 9c532d1 commit aa1ab43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/thermal/samsung/exynos_tmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit aa1ab43

Please sign in to comment.