Hello, [Cc += pxa maintainers and a few people I talked to about this driver in irc yesterday] On Tue, Jun 14, 2022 at 09:48:02PM +0200, Uwe Kleine-König wrote: > There is no user of these callbacks. The motivation for this change is > to stop returning an error code from the remove callback. > > This is a preparation for making platform remove callbacks return void. > > Signed-off-by: Uwe Kleine-König A side note to this driver: In the probe routine there is a check at the start: struct ucb1400_gpio *ucb = dev_get_platdata(&dev->dev); if (!(ucb && ucb->gpio_offset)) { err = -EINVAL; goto err; } So the driver doesn't bind unless there is platdata and it has gpio_offset != 0. (The decade before last called and wants its fixed gpio numbers back :-) platdata is assembled in drivers/mfd/ucb1400_core.c:ucb1400_core_probe() using: struct ucb1400_pdata *pdata = dev_get_platdata(dev); ... if (pdata) ucb_gpio.gpio_offset = pdata->gpio_offset; All machines using this ucb1400 mfd (i.e. arch/arm/mach-pxa/balloon3.c, arch/arm/mach-pxa/colibri-pxa270.c, arch/arm/mach-pxa/vpac270.c) all don't set the .gpio_offset member in their ucb1400_pdata. So the gpio driver is effectively unused and alternatively could just be removed entirely. Also there seems to be some pending spring cleanup, so the pxa boards might just be removed soon, which looks like a good opportunity to drop the driver, too. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ |