crypto: stm32 - solve crc issue during unbind
authorlionel.debieve@st.com <lionel.debieve@st.com>
Thu, 13 Jul 2017 13:06:32 +0000 (15:06 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 28 Jul 2017 09:55:53 +0000 (17:55 +0800)
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>
drivers/crypto/stm32/stm32_crc32.c

index 04d2f4ba310bbfe93f80f4121d39258b230a5e3e..090582baecfe87ee0486b32a9e992281020e4dcf 100644 (file)
@@ -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);