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>
This commit is contained in:
parent
391775191f
commit
0373d08587
|
@ -296,7 +296,7 @@ static int stm32_crc_remove(struct platform_device *pdev)
|
||||||
list_del(&crc->list);
|
list_del(&crc->list);
|
||||||
spin_unlock(&crc_list.lock);
|
spin_unlock(&crc_list.lock);
|
||||||
|
|
||||||
crypto_unregister_shash(algs);
|
crypto_unregister_shashes(algs, ARRAY_SIZE(algs));
|
||||||
|
|
||||||
clk_disable_unprepare(crc->clk);
|
clk_disable_unprepare(crc->clk);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue