crypto: jh7110 - Correct deferred probe return
authorChanho Park <chanho61.park@samsung.com>
Thu, 9 Nov 2023 06:32:59 +0000 (15:32 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jan 2024 23:35:15 +0000 (15:35 -0800)
commit6d9f17829eb607b3dcc2d8cf9cb4ae8586f174b5
treeeacee60914a3cb4ff8527747405c23dd5b6e6585
parent2831f4d3bfa68e64c5f83e96688be779c87b3511
crypto: jh7110 - Correct deferred probe return

[ Upstream commit d57343022b71b9f41e731282dbe0baf0cff6ada8 ]

This fixes list_add corruption error when the driver is returned
with -EPROBE_DEFER. It is also required to roll back the previous
probe sequences in case of deferred_probe. So, this removes
'err_probe_defer" goto label and just use err_dma_init instead.

Fixes: 42ef0e944b01 ("crypto: starfive - Add crypto engine support")
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Reviewed-by: Jia Jie Ho <jiajie.ho@starfivetech.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/starfive/jh7110-cryp.c