linux/drivers/crypto/aspeed
Uwe Kleine-König 7866701cd2 crypto: aspeed-hace - Convert to platform remove callback returning void
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart
from emitting a warning) and this typically results in resource leaks.

To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new(), which already returns void. Eventually after all drivers
are converted, .remove_new() will be renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2023-10-27 18:04:25 +08:00
..
aspeed-acry.c crypto: aspeed-acry - Convert to platform remove callback returning void 2023-10-27 18:04:25 +08:00
aspeed-hace-crypto.c crypto: aspeed - Use new crypto_engine_op interface 2023-08-18 17:01:10 +08:00
aspeed-hace-hash.c crypto: aspeed - Remove non-standard sha512 algorithms 2023-08-18 17:01:10 +08:00
aspeed-hace.c crypto: aspeed-hace - Convert to platform remove callback returning void 2023-10-27 18:04:25 +08:00
aspeed-hace.h crypto: aspeed - Use new crypto_engine_op interface 2023-08-18 17:01:10 +08:00
Kconfig crypto: aspeed - Add ACRY RSA driver 2023-01-13 12:11:18 +08:00
Makefile crypto: aspeed - Fix modular aspeed-acry 2023-02-14 13:39:33 +08:00