[PATCH v2 4/4] bus: Make remove callback return void
William Breathitt Gray
vilhelm.gray at gmail.com
Wed Jul 7 07:37:39 AEST 2021
On Tue, Jul 06, 2021 at 05:48:03PM +0200, Uwe Kleine-König wrote:
> The driver core ignores the return value of this callback because there
> is only little it can do when a device disappears.
>
> This is the final bit of a long lasting cleanup quest where several
> buses were converted to also return void from their remove callback.
> Additionally some resource leaks were fixed that were caused by drivers
> returning an error code in the expectation that the driver won't go
> away.
>
> With struct bus_type::remove returning void it's prevented that newly
> implemented buses return an ignored error code and so don't anticipate
> wrong expectations for driver authors.
>
> Acked-by: Russell King (Oracle) <rmk+kernel at armlinux.org.uk> (For ARM, Amba and related parts)
> Acked-by: Mark Brown <broonie at kernel.org>
> Acked-by: Chen-Yu Tsai <wens at csie.org> (for drivers/bus/sunxi-rsb.c)
> Acked-by: Pali Rohár <pali at kernel.org>
> Acked-by: Mauro Carvalho Chehab <mchehab at kernel.org> (for drivers/media)
> Acked-by: Hans de Goede <hdegoede at redhat.com> (For drivers/platform)
> Acked-by: Alexandre Belloni <alexandre.belloni at bootlin.com>
> Acked-By: Vinod Koul <vkoul at kernel.org>
> Acked-by: Juergen Gross <jgross at suse.com> (For Xen)
> Acked-by: Lee Jones <lee.jones at linaro.org> (For drivers/mfd)
> Acked-by: Johannes Thumshirn <jth at kernel.org> (For drivers/mcb)
> Acked-by: Johan Hovold <johan at kernel.org>
> Acked-by: Srinivas Kandagatla <srinivas.kandagatla at linaro.org> (For drivers/slimbus)
> Acked-by: Kirti Wankhede <kwankhede at nvidia.com> (For drivers/vfio)
> Acked-by: Maximilian Luz <luzmaximilian at gmail.com>
> Acked-by: Heikki Krogerus <heikki.krogerus at linux.intel.com> (For ulpi and typec)
> Acked-by: Samuel Iglesias Gonsálvez <siglesias at igalia.com> (For ipack)
> Reviewed-by: Tom Rix <trix at redhat.com> (For fpga)
> Acked-by: Geoff Levand <geoff at infradead.org> (For ps3)
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
> ---
> drivers/base/isa.c | 4 +---
Acked-by: William Breathitt Gray <vilhelm.gray at gmail.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20210707/3d81ff30/attachment-0001.sig>
More information about the Linuxppc-dev
mailing list