Angus Chen 1e0a7b41f5 ARM: imx: Call ida_simple_remove() for ida_simple_get
[ Upstream commit ebeb49f43c8952f12aa20f03f00d7009edc2d1c5 ]

The function call ida_simple_get maybe fail,we should deal with it.
And if ida_simple_get success ,it need to call ida_simple_remove also.
BTW,devm_kasprintf can handle id is zero for consistency.

Fixes: e76bdfd7403a ("ARM: imx: Added perf functionality to mmdc driver")
Signed-off-by: Angus Chen <angus.chen@jaguarmicro.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-10 09:32:38 +01:00
..
2021-10-26 10:13:31 +01:00
2023-02-01 08:34:04 +01:00
2019-06-21 09:58:42 -07:00
2020-03-11 15:17:02 +08:00
2021-06-12 12:02:57 +08:00
2021-06-12 12:02:57 +08:00
2020-09-22 14:08:13 +08:00
2020-09-22 14:08:13 +08:00
2020-09-22 14:08:13 +08:00
2021-06-12 12:02:57 +08:00
2021-10-26 10:13:31 +01:00