[PATCH v2 1/3] spi: mt65xx: Properly handle failures in .remove()

AngeloGioacchino Del Regno angelogioacchino.delregno at collabora.com
Tue May 30 02:25:54 PDT 2023


Il 30/05/23 10:16, Uwe Kleine-König ha scritto:
> Returning an error code in a platform driver's remove function is wrong
> most of the time and there is an effort to make the callback return
> void. To prepare this rework the function not to exit early.
> 
> There wasn't a real problem because if pm runtime resume failed the only
> step missing was pm_runtime_disable() which isn't an issue.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>

Cheers!



More information about the linux-arm-kernel mailing list