drivers/perf: fix the missed ida_simple_remove() in ddr_perf_probe()
authorJing Xiangfeng <jingxiangfeng@huawei.com>
Thu, 17 Jun 2021 12:26:14 +0000 (20:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:55:55 +0000 (16:55 +0200)
commit00b1a9f0e8d921da0dbc25a390a26e89e5c0cc91
treece88b0efe244f9e7c114d52d2091ddb0c5f8751e
parent625ee7d26799a8219a684d295070bbbc911ed7f4
drivers/perf: fix the missed ida_simple_remove() in ddr_perf_probe()

[ Upstream commit d96b1b8c9f79b6bb234a31c80972a6f422079376 ]

ddr_perf_probe() misses to call ida_simple_remove() in an error path.
Jump to cpuhp_state_err to fix it.

Signed-off-by: Jing Xiangfeng <jingxiangfeng@huawei.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
Link: https://lore.kernel.org/r/20210617122614.166823-1-jingxiangfeng@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/perf/fsl_imx8_ddr_perf.c