linux/drivers/vfio/platform
Uwe Kleine-König 9b27b117e2 vfio/platform: 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: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Link: https://lore.kernel.org/r/79d3df42fe5b359a05b8061631e72e5ed249b234.1709886922.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2024-03-11 12:09:22 -06:00
..
reset vfio/platform: Cleanup Kconfig 2023-06-16 12:23:50 -06:00
Kconfig vfio/platform: Cleanup Kconfig 2023-06-16 12:23:50 -06:00
Makefile vfio/platform: Cleanup Kconfig 2023-06-16 12:23:50 -06:00
vfio_amba.c vfio: amba: Rename pl330_ids[] to vfio_amba_ids[] 2024-03-04 15:10:49 -07:00
vfio_platform_common.c vfio: platform: ignore missing reset if disabled at module init 2023-02-01 12:25:41 -07:00
vfio_platform_irq.c eventfd: simplify eventfd_signal() 2023-11-28 14:08:38 +01:00
vfio_platform_private.h vfio/amba: Use the new device life cycle helpers 2022-09-21 14:15:11 -06:00
vfio_platform.c vfio/platform: Convert to platform remove callback returning void 2024-03-11 12:09:22 -06:00