rpmsg: qcom_glink_rpm: Convert to platform remove callback returning void
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 21 Mar 2023 15:40:38 +0000 (16:40 +0100)
committerBjorn Andersson <andersson@kernel.org>
Thu, 6 Apr 2023 03:58:32 +0000 (20:58 -0700)
commit49446e573bf591eef71c1e8c7cf87ec19aa2569f
treeee56176fe6c8fc05dc21beeef176a01c67bb0b63
parent810c03d9d7c978b4ee5287d8987043a9be1d614e
rpmsg: qcom_glink_rpm: 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>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230321154039.355098-3-u.kleine-koenig@pengutronix.de
drivers/rpmsg/qcom_glink_rpm.c