diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-05-30 10:16:47 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-05-30 13:46:57 +0100 |
commit | df7e47196fcef5d5611caa65f91d813578cf3efd (patch) | |
tree | 2d6242f77c256f7aa8a371ecd1c41604fe1bbef3 /drivers/md/dm-linear.c | |
parent | 22f407278ea43df46f90cece6595e5e8a0d5447c (diff) | |
download | linux-stable-df7e47196fcef5d5611caa65f91d813578cf3efd.tar.gz linux-stable-df7e47196fcef5d5611caa65f91d813578cf3efd.tar.bz2 linux-stable-df7e47196fcef5d5611caa65f91d813578cf3efd.zip |
spi: mt65xx: 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 (mostly) ignored
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.
Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20230530081648.2199419-3-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/md/dm-linear.c')
0 files changed, 0 insertions, 0 deletions