1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/platform/x86/intel/pmc
Uwe Kleine-König 1655db18b8 platform/x86: intel: pmc: core: 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 (mostly) ignored
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.

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/20230302144732.1903781-24-u.kleine-koenig@pengutronix.de
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2023-03-07 12:20:38 +01:00
..
adl.c platform/x86: intel/pmc: Relocate Alder Lake PCH support 2022-11-21 10:42:50 +01:00
cnp.c platform/x86: intel/pmc: Relocate Cannon Lake Point PCH support 2022-11-21 10:42:41 +01:00
core.c platform/x86: intel: pmc: core: Convert to platform remove callback returning void 2023-03-07 12:20:38 +01:00
core.h platform/x86: intel/pmc/core: Add Meteor Lake support to pmc core driver 2022-11-21 10:42:52 +01:00
icl.c platform/x86: intel/pmc: Relocate Ice Lake PCH support 2022-11-21 10:42:44 +01:00
Kconfig platform/x86: intel_pmc_core: Move to intel sub-directory 2021-08-20 20:00:21 +02:00
Makefile platform/x86: intel/pmc/core: Add Meteor Lake support to pmc core driver 2022-11-21 10:42:52 +01:00
mtl.c platform/x86: intel/pmc/core: Add Meteor Lake support to pmc core driver 2022-11-21 10:42:52 +01:00
pltdrv.c platform/x86/intel: pmc: Don't unconditionally attach Intel PMC when virtualized 2022-11-15 16:53:17 +01:00
spt.c platform/x86: intel/pmc: Relocate Sunrise Point PCH support 2022-11-21 10:42:38 +01:00
tgl.c platform/x86: intel/pmc: Switch to use acpi_evaluate_dsm_typed() 2023-02-02 22:48:20 +01:00