mirror-linux/drivers/crypto/ccree
Uwe Kleine-König e7edfb4171 crypto: ccree/cc - 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>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2023-10-27 18:04:26 +08:00
..
Makefile
cc_aead.c crypto: ccree - Set DMA alignment explicitly 2022-12-09 18:45:00 +08:00
cc_aead.h
cc_buffer_mgr.c crypto: ccree - Set DMA alignment explicitly 2022-12-09 18:45:00 +08:00
cc_buffer_mgr.h
cc_cipher.c crypto: xts - drop xts_check_key() 2023-01-06 17:15:47 +08:00
cc_cipher.h
cc_crypto_ctx.h
cc_debugfs.c crypto: ccree - Make cc_debugfs_global_fini() available for module init function 2022-11-22 18:12:55 +08:00
cc_debugfs.h
cc_driver.c crypto: ccree/cc - Convert to platform remove callback returning void 2023-10-27 18:04:26 +08:00
cc_driver.h
cc_fips.c
cc_fips.h
cc_hash.c crypto: ccree - Set DMA alignment explicitly 2022-12-09 18:45:00 +08:00
cc_hash.h
cc_host_regs.h
cc_hw_queue_defs.h
cc_kernel_regs.h
cc_lli_defs.h
cc_pm.c crypto: ccree - Add missing clk_disable_unprepare() in cc_pm_resume() 2022-07-15 16:43:20 +08:00
cc_pm.h
cc_request_mgr.c crypto: ccree - remove redundant 'flush_workqueue()' calls 2021-11-20 15:06:38 +11:00
cc_request_mgr.h
cc_sram_mgr.c
cc_sram_mgr.h