hwspinlock: omap: Convert to platform remove callback returning void
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 14 Mar 2023 18:01:00 +0000 (19:01 +0100)
committerBjorn Andersson <andersson@kernel.org>
Sat, 15 Jul 2023 20:04:25 +0000 (13:04 -0700)
commit4cf16b6b743e0bbe3128cf97a193ee37110d597b
treedd3c0159b6039e3685a62717c00253f224353f75
parent72a3a509f992b6bd182b3380913fe7b4f801075f
hwspinlock: omap: 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.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230314180100.2865801-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/hwspinlock/omap_hwspinlock.c