linux/arch/x86/platform
Uwe Kleine-König 801549ed6a x86/platform/olpc-xo1-sci: 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>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/63c9d1e6b07296916e4218c63f59a2dd6c6b6b16.1712732665.git.u.kleine-koenig@pengutronix.de
2024-04-10 14:59:31 +02:00
..
atom x86/platform/atom: Check state of Punit managed devices on s2idle 2024-03-12 12:48:22 +02:00
ce4100 x86/of: Set the parse_smp_cfg for all the DeviceTree platforms by default 2024-04-03 08:46:08 +02:00
efi x86/efi: Implement arch_ima_efi_boot_mode() in source file 2024-01-30 15:17:17 +01:00
geode x86/platform/geode: Convert alix LED to GPIO machine descriptor 2021-01-15 18:55:53 +01:00
intel x86: Fix various typos in comments 2021-03-18 15:31:53 +01:00
intel-mid x86/mpparse: Switch to new init callbacks 2024-02-15 22:07:41 +01:00
intel-quark arch/x86: Fix typos 2024-01-03 11:46:22 +01:00
iris x86/platform/iris: Convert to platform remove callback returning void 2024-04-10 14:59:30 +02:00
olpc x86/platform/olpc-xo1-sci: Convert to platform remove callback returning void 2024-04-10 14:59:31 +02:00
pvh xen: branch for v6.9-rc1 2024-03-19 08:48:09 -07:00
scx200 treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
ts5500 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
uv x86/cleanups changes for v6.8: 2024-01-08 17:23:32 -08:00
Makefile Simple Firmware Interface (SFI) support removal for v5.12-rc1 2021-02-24 10:35:29 -08:00