summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlionel.debieve@st.com <lionel.debieve@st.com>2017-07-13 15:06:32 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2017-07-28 11:55:53 +0200
commit0373d085870ab036146002d1ba3128855e26c953 (patch)
treea8bacade328cad48a6e3eae0915d15cbf5ad6c95
parentcrypto: stm32 - CRC use relaxed function (diff)
downloadlinux-0373d085870ab036146002d1ba3128855e26c953.tar.xz
linux-0373d085870ab036146002d1ba3128855e26c953.zip
crypto: stm32 - solve crc issue during unbind
Use the correct unregister_shashes function to to remove the registered algo Signed-off-by: Lionel Debieve <lionel.debieve@st.com> Reviewed-by: Fabien Dessenne <fabien.dessenne@st.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--drivers/crypto/stm32/stm32_crc32.c2
1 files changed, 1 insertions, 1 deletions
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);