diff options
author | Anson Huang <Anson.Huang@nxp.com> | 2019-07-30 10:21:23 +0800 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2019-08-28 16:33:22 +0800 |
commit | 11f0cdc8bd621fcded06c951b05076e618c5c717 (patch) | |
tree | cda3e21d9b05b358b3917ef609866faae0af67c0 /drivers | |
parent | 51904045d4aa07fbccf6ff18d56d2064a7676d35 (diff) | |
download | linux-11f0cdc8bd621fcded06c951b05076e618c5c717.tar.bz2 |
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 <Anson.Huang@nxp.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/thermal/qoriq_thermal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/qoriq_thermal.c b/drivers/thermal/qoriq_thermal.c index 28939471ce16..5755a1108a1f 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; |