mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
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>
This commit is contained in:
parent
9c532d1710
commit
aa1ab4347e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue