linux/drivers/firmware/google
Uwe Kleine-König 09aeaabebd firmware: coreboot: 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.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/d323e4f24bfab3ac1480933deb51e7c5cb025b09.1703693980.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
2023-12-28 10:42:25 +08:00
..
cbmem.c firmware: google: fix a NULL vs IS_ERR() check in cbmem_entry_probe() 2022-11-23 20:03:14 +01:00
coreboot_table.c firmware: coreboot: Convert to platform remove callback returning void 2023-12-28 10:42:25 +08:00
coreboot_table.h firmware: coreboot: Check size of table entry and use flex-array 2023-01-13 15:22:03 -08:00
framebuffer-coreboot.c firmware: coreboot: framebuffer: Avoid invalid zero physical address 2023-11-13 10:38:32 +08:00
gsmi.c A healthy mix of EFI contributions this time: 2023-02-23 14:41:48 -08:00
Kconfig firmware: coreboot: framebuffer: Allow building with simpledrm 2023-08-04 16:31:32 +02:00
Makefile firmware: google: Implement cbmem in sysfs driver 2022-11-10 18:51:56 +01:00
memconsole-coreboot.c firmware: google: make coreboot driver's remove callback return void 2021-02-09 12:12:43 +01:00
memconsole-x86-legacy.c
memconsole.c
memconsole.h
vpd_decode.c
vpd_decode.h
vpd.c firmware: google: make coreboot driver's remove callback return void 2021-02-09 12:12:43 +01:00