thermal: qoriq: Fix error path of calling qoriq_tmu_register_tmu_zone fail
authorAnson Huang <Anson.Huang@nxp.com>
Tue, 30 Jul 2019 02:21:23 +0000 (10:21 +0800)
committerZhang Rui <rui.zhang@intel.com>
Wed, 28 Aug 2019 08:33:22 +0000 (16:33 +0800)
commit11f0cdc8bd621fcded06c951b05076e618c5c717
treecda3e21d9b05b358b3917ef609866faae0af67c0
parent51904045d4aa07fbccf6ff18d56d2064a7676d35
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>
drivers/thermal/qoriq_thermal.c