linux/drivers/fsi
Uwe Kleine-König 29f102dbb1 fsi: occ: 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 ignored (apart
from emitting a warning) 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. Eventually after all drivers
are converted, .remove_new() will be renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Link: https://lists.ozlabs.org/pipermail/linux-fsi/2024-March/000613.html
Acked-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2024-05-27 10:13:55 +02:00
..
cf-fsi-fw.h fsi: cf-fsi-fw: Use the correct style for SPDX License Identifier 2019-06-19 19:35:51 +02:00
fsi-core.c fsi: Lock mutex for master device registration 2023-08-11 13:32:14 +09:30
fsi-master-aspeed.c fsi: master-aspeed: Convert to platform remove callback returning void 2024-05-27 10:13:54 +02:00
fsi-master-ast-cf.c fsi: master-ast-cf: Convert to platform remove callback returning void 2024-05-27 10:13:54 +02:00
fsi-master-gpio.c fsi: master-gpio: Convert to platform remove callback returning void 2024-05-27 10:13:54 +02:00
fsi-master-hub.c fsi: Move fsi_slave structure definition to header 2023-08-09 15:41:59 +09:30
fsi-master-i2cr.c fsi: i2cr: Switch to use struct i2c_driver's .probe() 2023-08-22 15:51:33 +02:00
fsi-master-i2cr.h fsi: Add IBM I2C Responder virtual FSI master 2023-08-11 13:32:14 +09:30
fsi-master.h fsi: Move fsi_slave structure definition to header 2023-08-09 15:41:59 +09:30
fsi-occ.c fsi: occ: Convert to platform remove callback returning void 2024-05-27 10:13:55 +02:00
fsi-sbefifo.c fsi: fix some spelling mistakes in comment 2023-08-11 13:32:15 +09:30
fsi-scom.c fsi: Use of_match_table for bus matching if specified 2023-08-09 15:43:27 +09:30
fsi-slave.h fsi: Move fsi_slave structure definition to header 2023-08-09 15:41:59 +09:30
i2cr-scom.c fsi: Add I2C Responder SCOM driver 2023-08-11 13:32:14 +09:30
Kconfig fsi: Add I2C Responder SCOM driver 2023-08-11 13:32:14 +09:30
Makefile fsi: Add I2C Responder SCOM driver 2023-08-11 13:32:14 +09:30