linux/drivers/dma/sh
Uwe Kleine-König 9f2812a7fe dmaengine: sh: usb-dmac: 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() is 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>
Link: https://lore.kernel.org/r/20230919133207.1400430-43-u.kleine-koenig@pengutronix.de
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2023-09-28 13:10:55 +05:30
..
Kconfig dmaengine: sh: Kconfig: Make RZ_DMAC depend on ARCH_RZG2L 2022-04-08 23:22:00 +05:30
Makefile dmaengine: sh: Add DMAC driver for RZ/G2L SoC 2021-08-29 19:14:19 +05:30
rcar-dmac.c dmaengine: sh: rcar-dmac: Convert to platform remove callback returning void 2023-09-28 13:10:54 +05:30
rz-dmac.c dmaengine: sh: rz-dmac: Convert to platform remove callback returning void 2023-09-28 13:10:54 +05:30
shdma-base.c dmaengine: remove MODULE_LICENSE in non-modules 2023-04-13 13:13:51 -07:00
shdma.h dmaengine: sh: Remove R-Mobile APE6 support 2018-12-05 13:01:54 +05:30
shdmac.c dmaengine: sh: shdmac: Convert to platform remove callback returning void 2023-09-28 13:10:54 +05:30
usb-dmac.c dmaengine: sh: usb-dmac: Convert to platform remove callback returning void 2023-09-28 13:10:55 +05:30