HSI: omap_ssi: Don't jump to free ID in ssi_add_controller()
authorJing Xiangfeng <jingxiangfeng@huawei.com>
Mon, 12 Oct 2020 02:56:43 +0000 (10:56 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sat, 28 Nov 2020 23:39:29 +0000 (00:39 +0100)
commit41fff6e19bc8d6d8bca79ea388427c426e72e097
tree7170407612b1aafaabcb5eac538b542d0058164a
parent3650b228f83adda7e5ee532e2b90429c03f7b9ec
HSI: omap_ssi: Don't jump to free ID in ssi_add_controller()

In current code, it jumps to ida_simple_remove() when ida_simple_get()
failes to allocate an ID. Just return to fix it.

Fixes: 0fae198988b8 ("HSI: omap_ssi: built omap_ssi and omap_ssi_port into one module")
Signed-off-by: Jing Xiangfeng <jingxiangfeng@huawei.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/hsi/controllers/omap_ssi_core.c