linux/drivers/platform/goldfish
Uwe Kleine-König 736dfbde3a platform/goldfish: goldfish_pipe: 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>
Link: https://lore.kernel.org/r/20231112000029.151117-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-11-28 19:03:24 +00:00
..
goldfish_pipe_qemu.h platform: goldfish: pipe: Remove license boilerplate 2018-09-25 20:25:42 +02:00
goldfish_pipe.c platform/goldfish: goldfish_pipe: Convert to platform remove callback returning void 2023-11-28 19:03:24 +00:00
Kconfig platform: goldfish: Allow goldfish drivers for archs with IOMEM and DMA 2019-10-10 15:24:20 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00