Re: [PATCH 07/40] soc/fsl: cpm: tsa: Convert to platform remove callback returning void

2023-09-27 Thread Herve Codina
Hi Uwe, On Mon, 25 Sep 2023 11:54:58 +0200 Uwe Kleine-König wrote: > 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

[PATCH 07/40] soc/fsl: cpm: tsa: Convert to platform remove callback returning void

2023-09-25 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