linux/drivers/platform/x86/intel/int3472
Uwe Kleine-König 6ee08b4eba platform/x86: intel: int3472: discrete: 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-22-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:33 +01:00
..
clk_and_regulator.c platform/x86: int3472/discrete: Get the polarity from the _DSM entry 2023-02-03 10:22:35 +01:00
common.c ACPI: scan: Add acpi_dev_get_next_consumer_dev() 2022-09-24 19:12:32 +02:00
common.h platform/x86: int3472/discrete: Get the polarity from the _DSM entry 2023-02-03 10:22:35 +01:00
discrete.c platform/x86: intel: int3472: discrete: Convert to platform remove callback returning void 2023-03-07 12:20:33 +01:00
Kconfig platform/x86: int3472/discrete: add LEDS_CLASS dependency 2023-02-10 17:08:24 +01:00
led.c platform/x86: int3472/discrete: Create a LED class device for the privacy LED 2023-02-03 10:22:35 +01:00
Makefile platform/x86: int3472/discrete: Create a LED class device for the privacy LED 2023-02-03 10:22:35 +01:00
tps68470_board_data.c platform/x86: int3472: Add GPIOs to Surface Go 3 Board data 2023-03-07 12:08:30 +01:00
tps68470.c More ACPI updates for 6.1-rc1 2022-10-10 13:28:06 -07:00
tps68470.h platform/x86: int3472: Support multiple gpio lookups in board data 2022-09-24 19:12:32 +02:00