Skip to content

Commit

Permalink
crypto: stm32 - solve crc issue during unbind
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
lionel.debieve@st.com authored and Herbert Xu committed Jul 28, 2017
1 parent 3917751 commit 0373d08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/stm32/stm32_crc32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 0373d08

Please sign in to comment.