mirror_ubuntu-kernels/drivers/platform/x86/intel
Uwe Kleine-König 4222272a04 platform/x86: intel: vbtn: 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-26-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:41 +01:00
..
atomisp2 platform/x86: intel_atomisp2_led: Also turn off the always-on camera LED on the Asus T100TAF 2022-07-10 19:37:19 +02:00
ifs platform/x86/intel/ifs: Add missing kernel-doc entry 2022-12-03 11:16:16 +01:00
int1092 platform/x86: intel: int1092: intel_sar: Convert to platform remove callback returning void 2023-03-07 12:20:31 +01:00
int3472 platform/x86: intel: int3472: discrete: Convert to platform remove callback returning void 2023-03-07 12:20:33 +01:00
pmc platform/x86: intel: pmc: core: Convert to platform remove callback returning void 2023-03-07 12:20:38 +01:00
pmt platform/x86/intel/pmt: Sapphire Rapids PMT errata fix 2022-11-07 12:33:49 +01:00
speed_select_if platform/x86: ISST: Add API version of the target 2023-03-07 12:08:30 +01:00
telemetry platform/x86: intel: telemetry: pltdrv: Convert to platform remove callback returning void 2023-03-07 12:20:40 +01:00
uncore-frequency platform/x86: intel-uncore-freq: add Emerald Rapids support 2022-11-23 17:00:11 +01:00
wmi platform/x86/intel/wmi: thunderbolt: Use dev_groups callback 2022-09-27 16:01:44 +02:00
bxtwc_tmu.c platform/x86: intel: bxtwc_tmu: Convert to platform remove callback returning void 2023-03-07 12:20:21 +01:00
chtdc_ti_pwrbtn.c platform/x86: intel: chtdc_ti_pwrbtn: Convert to platform remove callback returning void 2023-03-07 12:20:23 +01:00
chtwc_int33fe.c platform/x86: intel: chtwc_int33fe: Convert to platform remove callback returning void 2023-03-07 12:20:25 +01:00
crystal_cove_charger.c platform/x86: intel_crystal_cove_charger: Fix IRQ masking / unmasking 2022-01-24 10:41:46 +01:00
hid.c platform/x86: intel: hid: Convert to platform remove callback returning void 2023-03-07 12:20:27 +01:00
int0002_vgpio.c platform/x86: intel: int0002_vgpio: Convert to platform remove callback returning void 2023-03-07 12:20:29 +01:00
ishtp_eclite.c HID: intel-ish-hid: fix module device-id handling 2021-11-11 22:45:40 +01:00
Kconfig platform/x86/intel: Intel TPMI enumeration driver 2023-02-06 13:47:30 +01:00
Makefile platform/x86/intel: Intel TPMI enumeration driver 2023-02-06 13:47:30 +01:00
mrfld_pwrbtn.c platform/x86: intel: mrfld_pwrbtn: Convert to platform remove callback returning void 2023-03-07 12:20:35 +01:00
oaktrail.c platform/x86: intel: oaktrail: Drop empty platform remove function 2023-02-02 22:48:20 +01:00
punit_ipc.c platform/x86: intel: punit_ipc: Drop empty platform remove function 2023-02-02 22:48:20 +01:00
rst.c ACPI: make remove callback of ACPI driver void 2022-11-23 19:11:22 +01:00
sdsi.c platform/x86/intel/sdsi: Add meter certificate support 2022-11-21 10:55:35 +01:00
smartconnect.c platform/x86: intel-smartconnect: Move to intel sub-directory 2021-08-20 20:11:12 +02:00
tpmi.c platform/x86/intel/tpmi: Fix double free reported by Smatch 2023-03-07 11:37:27 +01:00
turbo_max_3.c platform/x86: intel_turbo_max_3: Move to intel sub-directory 2021-08-20 20:11:22 +02:00
vbtn.c platform/x86: intel: vbtn: Convert to platform remove callback returning void 2023-03-07 12:20:41 +01:00
vsec.c platform-drivers-x86 for v6.3-1 2023-02-21 17:32:50 -08:00
vsec.h platform/x86/intel/vsec: Support private data 2023-02-06 13:47:26 +01:00