summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}
OpenPOWER on IntegriCloud