[PATCH 2/2] um: virtio_uml: Convert to platform remove callback returning void

2024-03-09 Thread Uwe Kleine-König
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 h

[PATCH 1/2] um: rtc: Convert to platform remove callback returning void

2024-03-09 Thread Uwe Kleine-König
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 h

[PATCH 0/2] um: Convert to platform remove callback returning void

2024-03-09 Thread Uwe Kleine-König
Hello, this series converts all platform drivers below arch/um to stop using struct platform_driver::remove(). See commit 5c5a7680e67b ("platform: Provide a remove callback that returns no value") for an extended explanation and the eventual goal. Both conversations are trivial, because the drive