OrangePi_CM5/drivers/misc/cardreader
Christophe JAILLET f90ad94322 misc: alcor_pci: Fix an error handling path
[ Upstream commit 5b3dc949f554379edcb8ef6111aa5ecb78feb798 ]

A successful ida_simple_get() should be balanced by a corresponding
ida_simple_remove().

Add the missing call in the error handling path of the probe.

While at it, switch to ida_alloc()/ida_free() instead to
ida_simple_get()/ida_simple_remove().
The latter is deprecated and more verbose.

Fixes: 4f556bc04e ("misc: cardreader: add new Alcor Micro Cardreader PCI driver")
Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/918a9875b7f67b7f8f123c4446452603422e8c5e.1644136776.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:40:24 +02:00
..
Kconfig
…
Makefile
…
alcor_pci.c misc: alcor_pci: Fix an error handling path 2022-04-08 14:40:24 +02:00
rtl8411.c
…
rts5209.c
…
rts5227.c
…
rts5228.c
…
rts5228.h
…
rts5229.c
…
rts5249.c
…
rts5260.c
…
rts5260.h
…
rts5261.c
…
rts5261.h
…
rtsx_pcr.c
…
rtsx_pcr.h
…
rtsx_usb.c
…