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

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Mon Dec 14 15:40:46 EST 2020


On Thu, Dec 03, 2020 at 02:01:41PM +0100, Uwe Kleine-König wrote:
> Hello,
> 
> [This is a resend because somehow my MUA failed to parse the To: list
> and dropped it without me noticing it. Sorry to those who got it twice
> now.]
> 
> On Tue, Nov 24, 2020 at 02:31:38PM +0100, Uwe Kleine-König wrote:
> > From: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
> > 
> > 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>
> > Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
> > ---
> >  drivers/amba/bus.c                                 | 5 ++---
> >  drivers/char/hw_random/nomadik-rng.c               | 3 +--
> >  drivers/dma/pl330.c                                | 3 +--
> >  drivers/gpu/drm/pl111/pl111_drv.c                  | 4 +---
> >  drivers/hwtracing/coresight/coresight-catu.c       | 3 +--
> >  drivers/hwtracing/coresight/coresight-cpu-debug.c  | 4 +---
> >  drivers/hwtracing/coresight/coresight-cti-core.c   | 4 +---
> >  drivers/hwtracing/coresight/coresight-etb10.c      | 4 +---
> >  drivers/hwtracing/coresight/coresight-etm3x-core.c | 4 +---
> >  drivers/hwtracing/coresight/coresight-etm4x-core.c | 4 +---
> >  drivers/hwtracing/coresight/coresight-funnel.c     | 4 ++--
> >  drivers/hwtracing/coresight/coresight-replicator.c | 4 ++--
> >  drivers/hwtracing/coresight/coresight-stm.c        | 4 +---
> >  drivers/hwtracing/coresight/coresight-tmc-core.c   | 4 +---
> >  drivers/hwtracing/coresight/coresight-tpiu.c       | 4 +---
> >  drivers/i2c/busses/i2c-nomadik.c                   | 4 +---
> >  drivers/input/serio/ambakmi.c                      | 3 +--
> >  drivers/memory/pl172.c                             | 4 +---
> >  drivers/memory/pl353-smc.c                         | 4 +---
> >  drivers/mmc/host/mmci.c                            | 4 +---
> >  drivers/rtc/rtc-pl030.c                            | 4 +---
> >  drivers/rtc/rtc-pl031.c                            | 4 +---
> >  drivers/spi/spi-pl022.c                            | 5 ++---
> >  drivers/tty/serial/amba-pl010.c                    | 4 +---
> >  drivers/tty/serial/amba-pl011.c                    | 3 +--
> >  drivers/vfio/platform/vfio_amba.c                  | 3 +--
> >  drivers/video/fbdev/amba-clcd.c                    | 4 +---
> >  drivers/watchdog/sp805_wdt.c                       | 4 +---
> >  include/linux/amba/bus.h                           | 2 +-
> >  sound/arm/aaci.c                                   | 4 +---
> >  30 files changed, 34 insertions(+), 80 deletions(-)
> 
> I failed to Cc: the relevant maintainers before, so that's why I'm
> adressing you now. The idea is to let this series (completely available at
> https://lore.kernel.org/linux-arm-kernel/20201124133139.3072124-1-uwe@kleine-koenig.org/)
> go in via Russell King's tree, so an Ack from you would be great. If you
> want the original in your mailbox, just tell me and I can send you a
> bounce (or use b4 on the above link).

Technically there are still some maintainers' ack missing but I'd really
like to get this series applied.  As I don't want to make people angry
I'm asking once more for your Acks.

Or is the stuff outside of drivers/amba trivial enough to merge it even
without each maintainer's ack? (It's changing some functions from
returning int to void and dropping "return 0;".)

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20201214/14adf29c/attachment.sig>


More information about the linux-arm-kernel mailing list