From: lionel.debieve@st.com Date: Thu, 13 Jul 2017 13:06:32 +0000 (+0200) Subject: crypto: stm32 - solve crc issue during unbind X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0373d085870ab036146002d1ba3128855e26c953;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git crypto: stm32 - solve crc issue during unbind Use the correct unregister_shashes function to to remove the registered algo Signed-off-by: Lionel Debieve Reviewed-by: Fabien Dessenne Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/stm32/stm32_crc32.c b/drivers/crypto/stm32/stm32_crc32.c index 04d2f4ba310b..090582baecfe 100644 --- a/drivers/crypto/stm32/stm32_crc32.c +++ b/drivers/crypto/stm32/stm32_crc32.c @@ -296,7 +296,7 @@ static int stm32_crc_remove(struct platform_device *pdev) list_del(&crc->list); spin_unlock(&crc_list.lock); - crypto_unregister_shash(algs); + crypto_unregister_shashes(algs, ARRAY_SIZE(algs)); clk_disable_unprepare(crc->clk);