From: Anson Huang Date: Tue, 30 Jul 2019 02:21:23 +0000 (+0800) Subject: thermal: qoriq: Fix error path of calling qoriq_tmu_register_tmu_zone fail X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=11f0cdc8bd621fcded06c951b05076e618c5c717;p=linux.git thermal: qoriq: Fix error path of calling qoriq_tmu_register_tmu_zone fail When registering tmu zone failed, the error path should be err_tmu instead of err_iomap, as iounmap() needs to be called. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng Signed-off-by: Zhang Rui --- diff --git a/drivers/thermal/qoriq_thermal.c b/drivers/thermal/qoriq_thermal.c index 28939471ce160..5755a1108a1f2 100644 --- a/drivers/thermal/qoriq_thermal.c +++ b/drivers/thermal/qoriq_thermal.c @@ -231,7 +231,7 @@ static int qoriq_tmu_probe(struct platform_device *pdev) if (ret < 0) { dev_err(&pdev->dev, "Failed to register sensors\n"); ret = -ENODEV; - goto err_iomap; + goto err_tmu; } return 0;