diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-11-03 01:02:48 +0300 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2023-11-13 14:06:44 +0300 |
commit | 215283a1a4833f441778580359aea768642c56af (patch) | |
tree | 1b8140b45555b2b673c035a5cbd6c62eaf1b5ae1 /drivers/isdn | |
parent | b85ea95d086471afb4ad062012a4d73cd328fa86 (diff) | |
download | linux-215283a1a4833f441778580359aea768642c56af.tar.xz |
mtd: rawnand: brcmnand: 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().
By changing the function brcmnand_remove() to return void several
drivers that use this function as remove callback can be converted to
.remove_new().
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20231102220246.3336154-7-u.kleine-koenig@pengutronix.de
Diffstat (limited to 'drivers/isdn')
0 files changed, 0 insertions, 0 deletions