Re: [PATCH 06/20] mtd: powernv_flash: Convert to platform remove callback returning void

2023-10-16 Thread Miquel Raynal
On Sun, 2023-10-08 at 20:01:29 UTC, =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= 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

[PATCH 06/20] mtd: powernv_flash: Convert to platform remove callback returning void

2023-10-08 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