crypto: cesa: clear cesa_dev on _remove
Subsystems (2)
PATCH v2 1/1 crypto: cesa: clear cesa_dev on _remove
This is already done on probe failure.
cesa_dev should be set to NULL as the driver checks that it is not and errors saying that only one device is authorized.
Signed-off-by Rosen Penev <[email protected]>
---
v2: set after mv_cesa_remove_algs
drivers/crypto/marvell/cesa/cesa.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/crypto/marvell/cesa/cesa.c +2 -0
@@ -544,6 +544,8 @@ static void mv_cesa_remove(struct platform_device *pdev)struct mv_cesa_dev *cesa =platform_get_drvdata (pdev);mv_cesa_remove_algs (cesa); + + cesa_dev =NULL ; }static const struct platform_device_id mv_cesa_plat_id_table[] = {
Signature · 1 line
2.55.0
Herbert Xu
maintainerQuoted 10 lines · Rosen Penev
This is already done on probe failure.
cesa_devshould be set to NULL as the driver checks that it is not and errors saying that only one device is authorized.Signed-off-by Rosen Penev <[email protected]>---
v2: set aftermv_cesa_remove_algsdrivers/crypto/marvell/cesa/cesa.c | 2 ++ 1 file changed, 2 insertions(+)
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt