[PATCH v3 4/5] amba: Make the remove callback return void

Wolfram Sang wsa at kernel.org
Wed Jan 27 07:47:15 CET 2021


On Tue, Jan 26, 2021 at 05:58:34PM +0100, Uwe Kleine-König wrote:
> All amba drivers return 0 in their remove callback. Together with the
> driver core ignoring the return value anyhow, it doesn't make sense to
> return a value here.
> 
> Change the remove prototype to return void, which makes it explicit that
> returning an error value doesn't work as expected. This simplifies changing
> the core remove callback to return void, too.
> 
> Reviewed-by: Ulf Hansson <ulf.hansson at linaro.org>
> Reviewed-by: Arnd Bergmann <arnd at arndb.de>
> Acked-by: Alexandre Belloni <alexandre.belloni at bootlin.com>
> Acked-by: Dmitry Torokhov <dmitry.torokhov at gmail.com>
> Acked-by: Krzysztof Kozlowski <krzk at kernel.org> # for drivers/memory
> Acked-by: Mark Brown <broonie at kernel.org>
> Acked-by: Dmitry Torokhov <dmitry.torokhov at gmail.com>
> Acked-by: Linus Walleij <linus.walleij at linaro.org>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>

Acked-by: Wolfram Sang <wsa at kernel.org> # for I2C

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20210127/3edb65e7/attachment.sig>


More information about the Alsa-devel mailing list