Angus Chen 9b45d1bc31 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-11 16:31:32 +01:00
..
2018-07-11 20:47:37 +08:00
2016-02-02 13:31:19 +08:00
2017-01-02 14:02:09 +08:00
2016-08-01 18:21:13 -04:00
2016-06-28 10:26:37 +08:00
2016-06-28 10:26:20 +08:00
2016-08-01 18:27:08 -04:00