aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/thermal/exynos_thermal.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/thermal/exynos_thermal.c b/drivers/thermal/exynos_thermal.c
index 224751e9f5ff..bada1308318b 100644
--- a/drivers/thermal/exynos_thermal.c
+++ b/drivers/thermal/exynos_thermal.c
@@ -866,11 +866,9 @@ static int exynos_tmu_probe(struct platform_device *pdev)
866 return -ENOENT; 866 return -ENOENT;
867 } 867 }
868 868
869 data->base = devm_request_and_ioremap(&pdev->dev, data->mem); 869 data->base = devm_ioremap_resource(&pdev->dev, data->mem);
870 if (!data->base) { 870 if (IS_ERR(data->base))
871 dev_err(&pdev->dev, "Failed to ioremap memory\n"); 871 return PTR_ERR(data->base);
872 return -ENODEV;
873 }
874 872
875 ret = devm_request_irq(&pdev->dev, data->irq, exynos_tmu_irq, 873 ret = devm_request_irq(&pdev->dev, data->irq, exynos_tmu_irq,
876 IRQF_TRIGGER_RISING, "exynos-tmu", data); 874 IRQF_TRIGGER_RISING, "exynos-tmu", data);