All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/29] platform/x86: Convert to platform remove callback returning void
@ 2023-03-02 14:47 Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 01/29] platform/x86: acer-wmi: " Uwe Kleine-König
                   ` (29 more replies)
  0 siblings, 30 replies; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: Lee, Chun-Yi, Hans de Goede, Mark Gross, Andrea Ho,
	Naveen Krishna Chatradhi, Shyam Sundar S K, Santosh Kumar Yadav,
	Peter Korsgaard, Cezary Jackiewicz, Stuart Hayes,
	Pali Rohár, Eric Piel, Barnabás Pőcze,
	Jorge Lopez, Ike Panhc, Andy Shevchenko, Wolfram Sang,
	Heikki Krogerus, Maximilian Luz, Alex Hung,
	Sebastian Andrzej Siewior, Thomas Gleixner, Shravan Sudhakar,
	Intel Corporation, Daniel Scally, Rajneesh Bhardwaj,
	David E. Box, AceLan Kao
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel,
	Carlos Bilbao

Hello,

this patch series adapts the platform drivers below drivers/platform/x86
to use the .remove_new() callback. Compared to the traditional .remove()
callback .remove_new() returns no value. This is a good thing because
the driver core doesn't (and cannot) cope for errors during remove. The
only effect of a non-zero return value in .remove() is that the driver
core emits a warning. The device is removed anyhow and an early return
from .remove() usually yields a resource leak.

By changing the remove callback to return void driver authors cannot
reasonably assume any more that there is some kind of cleanup later.

All drivers touched here returned zero unconditionally in their remove
callback, so they could all be converted trivially to .remove_new().

Note that this series depends on commit 5c5a7680e67b ("platform: Provide
a remove callback that returns no value") that is already in Linus' tree
but not yet included in a tagged version.

Best regards
Uwe

Uwe Kleine-König (29):
  platform/x86: acer-wmi: Convert to platform remove callback returning void
  platform/x86: adv_swbutton: Convert to platform remove callback returning void
  platform/x86: amd: hsmp: Convert to platform remove callback returning void
  platform/x86: amd: pmc: Convert to platform remove callback returning void
  platform/x86: amd: pmf: core: Convert to platform remove callback returning void
  platform/x86: amilo-rfkill: Convert to platform remove callback returning void
  platform/x86: barco-p50-gpio: Convert to platform remove callback returning void
  platform/x86: compal-laptop: Convert to platform remove callback returning void
  platform/x86: dell: dcdbas: Convert to platform remove callback returning void
  platform/x86: dell: dell-smo8800: Convert to platform remove callback returning void
  platform/x86: hp: hp_accel: Convert to platform remove callback returning void
  platform/x86: hp: tc1100-wmi: Convert to platform remove callback returning void
  platform/x86: huawei-wmi: Convert to platform remove callback returning void
  platform/x86: ideapad-laptop: Convert to platform remove callback returning void
  platform/x86: intel: bxtwc_tmu: Convert to platform remove callback returning void
  platform/x86: intel: chtdc_ti_pwrbtn: Convert to platform remove callback returning void
  platform/x86: intel: chtwc_int33fe: Convert to platform remove callback returning void
  platform/x86: intel: hid: Convert to platform remove callback returning void
  platform/x86: intel: int0002_vgpio: Convert to platform remove callback returning void
  platform/x86: intel: int1092: intel_sar: Convert to platform remove callback returning void
  platform/x86: intel: int3472: discrete: Convert to platform remove callback returning void
  platform/x86: intel: mrfld_pwrbtn: Convert to platform remove callback returning void
  platform/x86: intel: pmc: core: Convert to platform remove callback returning void
  platform/x86: intel: telemetry: pltdrv: Convert to platform remove callback returning void
  platform/x86: intel: vbtn: Convert to platform remove callback returning void
  platform/x86: samsung-q10: Convert to platform remove callback returning void
  platform/x86: serial-multi-instantiate: Convert to platform remove callback returning void
  platform/x86: wmi: Convert to platform remove callback returning void
  platform/x86: xo1-rfkill: Convert to platform remove callback returning void

 drivers/platform/x86/acer-wmi.c                 |  5 ++---
 drivers/platform/x86/adv_swbutton.c             |  6 ++----
 drivers/platform/x86/amd/hsmp.c                 |  6 ++----
 drivers/platform/x86/amd/pmc.c                  |  5 ++---
 drivers/platform/x86/amd/pmf/core.c             |  5 ++---
 drivers/platform/x86/amilo-rfkill.c             |  5 ++---
 drivers/platform/x86/barco-p50-gpio.c           |  6 ++----
 drivers/platform/x86/compal-laptop.c            |  8 +++-----
 drivers/platform/x86/dell/dcdbas.c              |  6 ++----
 drivers/platform/x86/dell/dell-smo8800.c        |  5 ++---
 drivers/platform/x86/hp/hp_accel.c              |  5 ++---
 drivers/platform/x86/hp/tc1100-wmi.c            |  6 ++----
 drivers/platform/x86/huawei-wmi.c               |  6 ++----
 drivers/platform/x86/ideapad-laptop.c           |  6 ++----
 drivers/platform/x86/intel/bxtwc_tmu.c          |  5 ++---
 drivers/platform/x86/intel/chtdc_ti_pwrbtn.c    |  5 ++---
 drivers/platform/x86/intel/chtwc_int33fe.c      |  6 ++----
 drivers/platform/x86/intel/hid.c                | 10 ++--------
 drivers/platform/x86/intel/int0002_vgpio.c      |  5 ++---
 drivers/platform/x86/intel/int1092/intel_sar.c  |  5 ++---
 drivers/platform/x86/intel/int3472/discrete.c   |  6 ++----
 drivers/platform/x86/intel/mrfld_pwrbtn.c       |  5 ++---
 drivers/platform/x86/intel/pmc/core.c           |  5 ++---
 drivers/platform/x86/intel/telemetry/pltdrv.c   |  5 ++---
 drivers/platform/x86/intel/vbtn.c               | 10 ++--------
 drivers/platform/x86/samsung-q10.c              |  6 ++----
 drivers/platform/x86/serial-multi-instantiate.c |  6 ++----
 drivers/platform/x86/wmi.c                      |  6 ++----
 drivers/platform/x86/xo1-rfkill.c               |  5 ++---
 29 files changed, 59 insertions(+), 111 deletions(-)

base-commit: ee3f96b164688dae21e2466a57f2e806b64e8a37
-- 
2.39.1


^ permalink raw reply	[flat|nested] 32+ messages in thread

* [PATCH 01/29] platform/x86: acer-wmi: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
@ 2023-03-02 14:47 ` Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 02/29] platform/x86: adv_swbutton: " Uwe Kleine-König
                   ` (28 subsequent siblings)
  29 siblings, 0 replies; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: Lee, Chun-Yi, Hans de Goede, Mark Gross
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel

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>
---
 drivers/platform/x86/acer-wmi.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c
index ee67efdd5499..377a0becd1a1 100644
--- a/drivers/platform/x86/acer-wmi.c
+++ b/drivers/platform/x86/acer-wmi.c
@@ -2258,7 +2258,7 @@ static int acer_platform_probe(struct platform_device *device)
 	return err;
 }
 
-static int acer_platform_remove(struct platform_device *device)
+static void acer_platform_remove(struct platform_device *device)
 {
 	if (has_cap(ACER_CAP_MAILLED))
 		acer_led_exit();
@@ -2266,7 +2266,6 @@ static int acer_platform_remove(struct platform_device *device)
 		acer_backlight_exit();
 
 	acer_rfkill_exit();
-	return 0;
 }
 
 #ifdef CONFIG_PM_SLEEP
@@ -2334,7 +2333,7 @@ static struct platform_driver acer_platform_driver = {
 		.pm = &acer_pm,
 	},
 	.probe = acer_platform_probe,
-	.remove = acer_platform_remove,
+	.remove_new = acer_platform_remove,
 	.shutdown = acer_platform_shutdown,
 };
 
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [PATCH 02/29] platform/x86: adv_swbutton: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 01/29] platform/x86: acer-wmi: " Uwe Kleine-König
@ 2023-03-02 14:47 ` Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 03/29] platform/x86: amd: hsmp: " Uwe Kleine-König
                   ` (27 subsequent siblings)
  29 siblings, 0 replies; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: Andrea Ho, Hans de Goede, Mark Gross
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel

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>
---
 drivers/platform/x86/adv_swbutton.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/platform/x86/adv_swbutton.c b/drivers/platform/x86/adv_swbutton.c
index 38693b735c87..6b23ba78e028 100644
--- a/drivers/platform/x86/adv_swbutton.c
+++ b/drivers/platform/x86/adv_swbutton.c
@@ -90,14 +90,12 @@ static int adv_swbutton_probe(struct platform_device *device)
 	return 0;
 }
 
-static int adv_swbutton_remove(struct platform_device *device)
+static void adv_swbutton_remove(struct platform_device *device)
 {
 	acpi_handle handle = ACPI_HANDLE(&device->dev);
 
 	acpi_remove_notify_handler(handle, ACPI_DEVICE_NOTIFY,
 				   adv_swbutton_notify);
-
-	return 0;
 }
 
 static const struct acpi_device_id button_device_ids[] = {
@@ -112,7 +110,7 @@ static struct platform_driver adv_swbutton_driver = {
 		.acpi_match_table = button_device_ids,
 	},
 	.probe = adv_swbutton_probe,
-	.remove = adv_swbutton_remove,
+	.remove_new = adv_swbutton_remove,
 };
 module_platform_driver(adv_swbutton_driver);
 
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [PATCH 03/29] platform/x86: amd: hsmp: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 01/29] platform/x86: acer-wmi: " Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 02/29] platform/x86: adv_swbutton: " Uwe Kleine-König
@ 2023-03-02 14:47 ` Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 04/29] platform/x86: amd: pmc: " Uwe Kleine-König
                   ` (26 subsequent siblings)
  29 siblings, 0 replies; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: Naveen Krishna Chatradhi, Hans de Goede, Mark Gross
  Cc: kernel, Greg Kroah-Hartman, Carlos Bilbao, platform-driver-x86,
	linux-kernel

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>
---
 drivers/platform/x86/amd/hsmp.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/platform/x86/amd/hsmp.c b/drivers/platform/x86/amd/hsmp.c
index 521c6a229362..31382ef52efb 100644
--- a/drivers/platform/x86/amd/hsmp.c
+++ b/drivers/platform/x86/amd/hsmp.c
@@ -340,16 +340,14 @@ static int hsmp_pltdrv_probe(struct platform_device *pdev)
 	return misc_register(&hsmp_device);
 }
 
-static int hsmp_pltdrv_remove(struct platform_device *pdev)
+static void hsmp_pltdrv_remove(struct platform_device *pdev)
 {
 	misc_deregister(&hsmp_device);
-
-	return 0;
 }
 
 static struct platform_driver amd_hsmp_driver = {
 	.probe		= hsmp_pltdrv_probe,
-	.remove		= hsmp_pltdrv_remove,
+	.remove_new	= hsmp_pltdrv_remove,
 	.driver		= {
 		.name	= DRIVER_NAME,
 	},
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [PATCH 04/29] platform/x86: amd: pmc: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (2 preceding siblings ...)
  2023-03-02 14:47 ` [PATCH 03/29] platform/x86: amd: hsmp: " Uwe Kleine-König
@ 2023-03-02 14:47 ` Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 05/29] platform/x86: amd: pmf: core: " Uwe Kleine-König
                   ` (25 subsequent siblings)
  29 siblings, 0 replies; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: Shyam Sundar S K, Hans de Goede, Mark Gross
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel

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>
---
 drivers/platform/x86/amd/pmc.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/platform/x86/amd/pmc.c b/drivers/platform/x86/amd/pmc.c
index ab05b9ee6655..2f7b1267c5e4 100644
--- a/drivers/platform/x86/amd/pmc.c
+++ b/drivers/platform/x86/amd/pmc.c
@@ -1031,7 +1031,7 @@ static int amd_pmc_probe(struct platform_device *pdev)
 	return err;
 }
 
-static int amd_pmc_remove(struct platform_device *pdev)
+static void amd_pmc_remove(struct platform_device *pdev)
 {
 	struct amd_pmc_dev *dev = platform_get_drvdata(pdev);
 
@@ -1041,7 +1041,6 @@ static int amd_pmc_remove(struct platform_device *pdev)
 	amd_pmc_dbgfs_unregister(dev);
 	pci_dev_put(dev->rdev);
 	mutex_destroy(&dev->lock);
-	return 0;
 }
 
 static const struct acpi_device_id amd_pmc_acpi_ids[] = {
@@ -1066,7 +1065,7 @@ static struct platform_driver amd_pmc_driver = {
 #endif
 	},
 	.probe = amd_pmc_probe,
-	.remove = amd_pmc_remove,
+	.remove_new = amd_pmc_remove,
 };
 module_platform_driver(amd_pmc_driver);
 
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [PATCH 05/29] platform/x86: amd: pmf: core: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (3 preceding siblings ...)
  2023-03-02 14:47 ` [PATCH 04/29] platform/x86: amd: pmc: " Uwe Kleine-König
@ 2023-03-02 14:47 ` Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 06/29] platform/x86: amilo-rfkill: " Uwe Kleine-König
                   ` (24 subsequent siblings)
  29 siblings, 0 replies; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: Shyam Sundar S K, Hans de Goede, Mark Gross
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel

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>
---
 drivers/platform/x86/amd/pmf/core.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/platform/x86/amd/pmf/core.c b/drivers/platform/x86/amd/pmf/core.c
index da23639071d7..800ca2c998d3 100644
--- a/drivers/platform/x86/amd/pmf/core.c
+++ b/drivers/platform/x86/amd/pmf/core.c
@@ -402,7 +402,7 @@ static int amd_pmf_probe(struct platform_device *pdev)
 	return 0;
 }
 
-static int amd_pmf_remove(struct platform_device *pdev)
+static void amd_pmf_remove(struct platform_device *pdev)
 {
 	struct amd_pmf_dev *dev = platform_get_drvdata(pdev);
 
@@ -413,7 +413,6 @@ static int amd_pmf_remove(struct platform_device *pdev)
 	mutex_destroy(&dev->lock);
 	mutex_destroy(&dev->update_mutex);
 	kfree(dev->buf);
-	return 0;
 }
 
 static const struct attribute_group *amd_pmf_driver_groups[] = {
@@ -428,7 +427,7 @@ static struct platform_driver amd_pmf_driver = {
 		.dev_groups = amd_pmf_driver_groups,
 	},
 	.probe = amd_pmf_probe,
-	.remove = amd_pmf_remove,
+	.remove_new = amd_pmf_remove,
 };
 module_platform_driver(amd_pmf_driver);
 
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [PATCH 06/29] platform/x86: amilo-rfkill: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (4 preceding siblings ...)
  2023-03-02 14:47 ` [PATCH 05/29] platform/x86: amd: pmf: core: " Uwe Kleine-König
@ 2023-03-02 14:47 ` Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 07/29] platform/x86: barco-p50-gpio: " Uwe Kleine-König
                   ` (23 subsequent siblings)
  29 siblings, 0 replies; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: Hans de Goede, Mark Gross
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel

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>
---
 drivers/platform/x86/amilo-rfkill.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/platform/x86/amilo-rfkill.c b/drivers/platform/x86/amilo-rfkill.c
index 3e313c4d538d..efcf909786a5 100644
--- a/drivers/platform/x86/amilo-rfkill.c
+++ b/drivers/platform/x86/amilo-rfkill.c
@@ -124,11 +124,10 @@ static int amilo_rfkill_probe(struct platform_device *device)
 	return rc;
 }
 
-static int amilo_rfkill_remove(struct platform_device *device)
+static void amilo_rfkill_remove(struct platform_device *device)
 {
 	rfkill_unregister(amilo_rfkill_dev);
 	rfkill_destroy(amilo_rfkill_dev);
-	return 0;
 }
 
 static struct platform_driver amilo_rfkill_driver = {
@@ -136,7 +135,7 @@ static struct platform_driver amilo_rfkill_driver = {
 		.name	= KBUILD_MODNAME,
 	},
 	.probe	= amilo_rfkill_probe,
-	.remove	= amilo_rfkill_remove,
+	.remove_new = amilo_rfkill_remove,
 };
 
 static int __init amilo_rfkill_init(void)
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [PATCH 07/29] platform/x86: barco-p50-gpio: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (5 preceding siblings ...)
  2023-03-02 14:47 ` [PATCH 06/29] platform/x86: amilo-rfkill: " Uwe Kleine-König
@ 2023-03-02 14:47 ` Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 08/29] platform/x86: compal-laptop: " Uwe Kleine-König
                   ` (22 subsequent siblings)
  29 siblings, 0 replies; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: Santosh Kumar Yadav, Peter Korsgaard, Hans de Goede, Mark Gross
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel

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>
---
 drivers/platform/x86/barco-p50-gpio.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/platform/x86/barco-p50-gpio.c b/drivers/platform/x86/barco-p50-gpio.c
index 8dd672339485..af566f712057 100644
--- a/drivers/platform/x86/barco-p50-gpio.c
+++ b/drivers/platform/x86/barco-p50-gpio.c
@@ -370,7 +370,7 @@ static int p50_gpio_probe(struct platform_device *pdev)
 	return ret;
 }
 
-static int p50_gpio_remove(struct platform_device *pdev)
+static void p50_gpio_remove(struct platform_device *pdev)
 {
 	struct p50_gpio *p50 = platform_get_drvdata(pdev);
 
@@ -378,8 +378,6 @@ static int p50_gpio_remove(struct platform_device *pdev)
 	platform_device_unregister(p50->leds_pdev);
 
 	gpiod_remove_lookup_table(&p50_gpio_led_table);
-
-	return 0;
 }
 
 static struct platform_driver p50_gpio_driver = {
@@ -387,7 +385,7 @@ static struct platform_driver p50_gpio_driver = {
 		.name = DRIVER_NAME,
 	},
 	.probe = p50_gpio_probe,
-	.remove = p50_gpio_remove,
+	.remove_new = p50_gpio_remove,
 };
 
 /* Board setup */
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [PATCH 08/29] platform/x86: compal-laptop: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (6 preceding siblings ...)
  2023-03-02 14:47 ` [PATCH 07/29] platform/x86: barco-p50-gpio: " Uwe Kleine-König
@ 2023-03-02 14:47 ` Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 09/29] platform/x86: dell: dcdbas: " Uwe Kleine-König
                   ` (21 subsequent siblings)
  29 siblings, 0 replies; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: Cezary Jackiewicz, Hans de Goede, Mark Gross
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel

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>
---
 drivers/platform/x86/compal-laptop.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/drivers/platform/x86/compal-laptop.c b/drivers/platform/x86/compal-laptop.c
index e10d2f64dfad..61c745490d71 100644
--- a/drivers/platform/x86/compal-laptop.c
+++ b/drivers/platform/x86/compal-laptop.c
@@ -1003,12 +1003,12 @@ static int compal_probe(struct platform_device *pdev)
 	return err;
 }
 
-static int compal_remove(struct platform_device *pdev)
+static void compal_remove(struct platform_device *pdev)
 {
 	struct compal_data *data;
 
 	if (!extra_features)
-		return 0;
+		return;
 
 	pr_info("Unloading: resetting fan control to motherboard\n");
 	pwm_disable_control();
@@ -1017,8 +1017,6 @@ static int compal_remove(struct platform_device *pdev)
 	power_supply_unregister(data->psy);
 
 	sysfs_remove_group(&pdev->dev.kobj, &compal_platform_attr_group);
-
-	return 0;
 }
 
 static struct platform_driver compal_driver = {
@@ -1026,7 +1024,7 @@ static struct platform_driver compal_driver = {
 		.name = DRIVER_NAME,
 	},
 	.probe	= compal_probe,
-	.remove	= compal_remove,
+	.remove_new = compal_remove,
 };
 
 static int __init compal_init(void)
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [PATCH 09/29] platform/x86: dell: dcdbas: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (7 preceding siblings ...)
  2023-03-02 14:47 ` [PATCH 08/29] platform/x86: compal-laptop: " Uwe Kleine-König
@ 2023-03-02 14:47 ` Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 10/29] platform/x86: dell: dell-smo8800: " Uwe Kleine-König
                   ` (20 subsequent siblings)
  29 siblings, 0 replies; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: Stuart Hayes, Hans de Goede, Mark Gross
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel

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>
---
 drivers/platform/x86/dell/dcdbas.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/platform/x86/dell/dcdbas.c b/drivers/platform/x86/dell/dcdbas.c
index 0ecb7b164750..76787369d7fa 100644
--- a/drivers/platform/x86/dell/dcdbas.c
+++ b/drivers/platform/x86/dell/dcdbas.c
@@ -698,12 +698,10 @@ static int dcdbas_probe(struct platform_device *dev)
 	return 0;
 }
 
-static int dcdbas_remove(struct platform_device *dev)
+static void dcdbas_remove(struct platform_device *dev)
 {
 	unregister_reboot_notifier(&dcdbas_reboot_nb);
 	sysfs_remove_group(&dev->dev.kobj, &dcdbas_attr_group);
-
-	return 0;
 }
 
 static struct platform_driver dcdbas_driver = {
@@ -711,7 +709,7 @@ static struct platform_driver dcdbas_driver = {
 		.name	= DRIVER_NAME,
 	},
 	.probe		= dcdbas_probe,
-	.remove		= dcdbas_remove,
+	.remove_new	= dcdbas_remove,
 };
 
 static const struct platform_device_info dcdbas_dev_info __initconst = {
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [PATCH 10/29] platform/x86: dell: dell-smo8800: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (8 preceding siblings ...)
  2023-03-02 14:47 ` [PATCH 09/29] platform/x86: dell: dcdbas: " Uwe Kleine-König
@ 2023-03-02 14:47 ` Uwe Kleine-König
  2023-03-02 17:19   ` Pali Rohár
  2023-03-02 14:47 ` [PATCH 11/29] platform/x86: hp: hp_accel: " Uwe Kleine-König
                   ` (19 subsequent siblings)
  29 siblings, 1 reply; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: Pali Rohár, Hans de Goede, Mark Gross
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel

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>
---
 drivers/platform/x86/dell/dell-smo8800.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/platform/x86/dell/dell-smo8800.c b/drivers/platform/x86/dell/dell-smo8800.c
index 8d6b7a83cf24..f7ec17c56833 100644
--- a/drivers/platform/x86/dell/dell-smo8800.c
+++ b/drivers/platform/x86/dell/dell-smo8800.c
@@ -154,14 +154,13 @@ static int smo8800_probe(struct platform_device *device)
 	return err;
 }
 
-static int smo8800_remove(struct platform_device *device)
+static void smo8800_remove(struct platform_device *device)
 {
 	struct smo8800_device *smo8800 = platform_get_drvdata(device);
 
 	free_irq(smo8800->irq, smo8800);
 	misc_deregister(&smo8800->miscdev);
 	dev_dbg(&device->dev, "device /dev/freefall unregistered\n");
-	return 0;
 }
 
 /* NOTE: Keep this list in sync with drivers/i2c/busses/i2c-i801.c */
@@ -180,7 +179,7 @@ MODULE_DEVICE_TABLE(acpi, smo8800_ids);
 
 static struct platform_driver smo8800_driver = {
 	.probe = smo8800_probe,
-	.remove = smo8800_remove,
+	.remove_new = smo8800_remove,
 	.driver = {
 		.name = DRIVER_NAME,
 		.acpi_match_table = smo8800_ids,
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [PATCH 11/29] platform/x86: hp: hp_accel: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (9 preceding siblings ...)
  2023-03-02 14:47 ` [PATCH 10/29] platform/x86: dell: dell-smo8800: " Uwe Kleine-König
@ 2023-03-02 14:47 ` Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 12/29] platform/x86: hp: tc1100-wmi: " Uwe Kleine-König
                   ` (18 subsequent siblings)
  29 siblings, 0 replies; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: Eric Piel, Hans de Goede, Mark Gross
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel

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>
---
 drivers/platform/x86/hp/hp_accel.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/platform/x86/hp/hp_accel.c b/drivers/platform/x86/hp/hp_accel.c
index 6477591747cf..52535576772a 100644
--- a/drivers/platform/x86/hp/hp_accel.c
+++ b/drivers/platform/x86/hp/hp_accel.c
@@ -342,7 +342,7 @@ static int lis3lv02d_probe(struct platform_device *device)
 	return ret;
 }
 
-static int lis3lv02d_remove(struct platform_device *device)
+static void lis3lv02d_remove(struct platform_device *device)
 {
 	i8042_remove_filter(hp_accel_i8042_filter);
 	lis3lv02d_joystick_disable(&lis3_dev);
@@ -352,7 +352,6 @@ static int lis3lv02d_remove(struct platform_device *device)
 	flush_work(&hpled_led.work);
 
 	lis3lv02d_remove_fs(&lis3_dev);
-	return 0;
 }
 
 static int __maybe_unused lis3lv02d_suspend(struct device *dev)
@@ -373,7 +372,7 @@ static SIMPLE_DEV_PM_OPS(hp_accel_pm, lis3lv02d_suspend, lis3lv02d_resume);
 /* For the HP MDPS aka 3D Driveguard */
 static struct platform_driver lis3lv02d_driver = {
 	.probe	= lis3lv02d_probe,
-	.remove	= lis3lv02d_remove,
+	.remove_new = lis3lv02d_remove,
 	.driver	= {
 		.name	= "hp_accel",
 		.pm	= &hp_accel_pm,
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [PATCH 12/29] platform/x86: hp: tc1100-wmi: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (10 preceding siblings ...)
  2023-03-02 14:47 ` [PATCH 11/29] platform/x86: hp: hp_accel: " Uwe Kleine-König
@ 2023-03-02 14:47 ` Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 13/29] platform/x86: huawei-wmi: " Uwe Kleine-König
                   ` (17 subsequent siblings)
  29 siblings, 0 replies; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: Hans de Goede, Mark Gross, Barnabás Pőcze, Jorge Lopez
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel

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>
---
 drivers/platform/x86/hp/tc1100-wmi.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/platform/x86/hp/tc1100-wmi.c b/drivers/platform/x86/hp/tc1100-wmi.c
index ded26213c420..5298b0f6804f 100644
--- a/drivers/platform/x86/hp/tc1100-wmi.c
+++ b/drivers/platform/x86/hp/tc1100-wmi.c
@@ -170,11 +170,9 @@ static int __init tc1100_probe(struct platform_device *device)
 }
 
 
-static int tc1100_remove(struct platform_device *device)
+static void tc1100_remove(struct platform_device *device)
 {
 	sysfs_remove_group(&device->dev.kobj, &tc1100_attribute_group);
-
-	return 0;
 }
 
 #ifdef CONFIG_PM
@@ -223,7 +221,7 @@ static struct platform_driver tc1100_driver = {
 		.pm = &tc1100_pm_ops,
 #endif
 	},
-	.remove = tc1100_remove,
+	.remove_new = tc1100_remove,
 };
 
 static int __init tc1100_init(void)
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [PATCH 13/29] platform/x86: huawei-wmi: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (11 preceding siblings ...)
  2023-03-02 14:47 ` [PATCH 12/29] platform/x86: hp: tc1100-wmi: " Uwe Kleine-König
@ 2023-03-02 14:47 ` Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 14/29] platform/x86: ideapad-laptop: " Uwe Kleine-König
                   ` (16 subsequent siblings)
  29 siblings, 0 replies; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: Hans de Goede, Mark Gross
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel

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>
---
 drivers/platform/x86/huawei-wmi.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/platform/x86/huawei-wmi.c b/drivers/platform/x86/huawei-wmi.c
index 2df1b2d5e3ea..70e5c4c0574d 100644
--- a/drivers/platform/x86/huawei-wmi.c
+++ b/drivers/platform/x86/huawei-wmi.c
@@ -830,7 +830,7 @@ static int huawei_wmi_probe(struct platform_device *pdev)
 	return 0;
 }
 
-static int huawei_wmi_remove(struct platform_device *pdev)
+static void huawei_wmi_remove(struct platform_device *pdev)
 {
 	const struct wmi_device_id *guid = huawei_wmi_events_id_table;
 
@@ -846,8 +846,6 @@ static int huawei_wmi_remove(struct platform_device *pdev)
 		huawei_wmi_battery_exit(&pdev->dev);
 		huawei_wmi_fn_lock_exit(&pdev->dev);
 	}
-
-	return 0;
 }
 
 static struct platform_driver huawei_wmi_driver = {
@@ -855,7 +853,7 @@ static struct platform_driver huawei_wmi_driver = {
 		.name = "huawei-wmi",
 	},
 	.probe = huawei_wmi_probe,
-	.remove = huawei_wmi_remove,
+	.remove_new = huawei_wmi_remove,
 };
 
 static __init int huawei_wmi_init(void)
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [PATCH 14/29] platform/x86: ideapad-laptop: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (12 preceding siblings ...)
  2023-03-02 14:47 ` [PATCH 13/29] platform/x86: huawei-wmi: " Uwe Kleine-König
@ 2023-03-02 14:47 ` Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 15/29] platform/x86: intel: bxtwc_tmu: " Uwe Kleine-König
                   ` (15 subsequent siblings)
  29 siblings, 0 replies; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: Ike Panhc, Hans de Goede, Mark Gross
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel

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>
---
 drivers/platform/x86/ideapad-laptop.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c
index 0eb5bfdd823a..b5ef3452da1f 100644
--- a/drivers/platform/x86/ideapad-laptop.c
+++ b/drivers/platform/x86/ideapad-laptop.c
@@ -1921,7 +1921,7 @@ static int ideapad_acpi_add(struct platform_device *pdev)
 	return err;
 }
 
-static int ideapad_acpi_remove(struct platform_device *pdev)
+static void ideapad_acpi_remove(struct platform_device *pdev)
 {
 	struct ideapad_private *priv = dev_get_drvdata(&pdev->dev);
 	int i;
@@ -1942,8 +1942,6 @@ static int ideapad_acpi_remove(struct platform_device *pdev)
 	ideapad_input_exit(priv);
 	ideapad_debugfs_exit(priv);
 	ideapad_sysfs_exit(priv);
-
-	return 0;
 }
 
 #ifdef CONFIG_PM_SLEEP
@@ -1970,7 +1968,7 @@ MODULE_DEVICE_TABLE(acpi, ideapad_device_ids);
 
 static struct platform_driver ideapad_acpi_driver = {
 	.probe = ideapad_acpi_add,
-	.remove = ideapad_acpi_remove,
+	.remove_new = ideapad_acpi_remove,
 	.driver = {
 		.name   = "ideapad_acpi",
 		.pm     = &ideapad_pm,
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [PATCH 15/29] platform/x86: intel: bxtwc_tmu: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (13 preceding siblings ...)
  2023-03-02 14:47 ` [PATCH 14/29] platform/x86: ideapad-laptop: " Uwe Kleine-König
@ 2023-03-02 14:47 ` Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 16/29] platform/x86: intel: chtdc_ti_pwrbtn: " Uwe Kleine-König
                   ` (14 subsequent siblings)
  29 siblings, 0 replies; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: Hans de Goede, Mark Gross
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel

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>
---
 drivers/platform/x86/intel/bxtwc_tmu.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/platform/x86/intel/bxtwc_tmu.c b/drivers/platform/x86/intel/bxtwc_tmu.c
index 7ccf583649e6..d0e2a3c293b0 100644
--- a/drivers/platform/x86/intel/bxtwc_tmu.c
+++ b/drivers/platform/x86/intel/bxtwc_tmu.c
@@ -89,7 +89,7 @@ static int bxt_wcove_tmu_probe(struct platform_device *pdev)
 	return 0;
 }
 
-static int bxt_wcove_tmu_remove(struct platform_device *pdev)
+static void bxt_wcove_tmu_remove(struct platform_device *pdev)
 {
 	struct wcove_tmu *wctmu = platform_get_drvdata(pdev);
 	unsigned int val;
@@ -101,7 +101,6 @@ static int bxt_wcove_tmu_remove(struct platform_device *pdev)
 	regmap_read(wctmu->regmap, BXTWC_MTMUIRQ_REG, &val);
 	regmap_write(wctmu->regmap, BXTWC_MTMUIRQ_REG,
 			val | BXTWC_TMU_ALRM_MASK);
-	return 0;
 }
 
 #ifdef CONFIG_PM_SLEEP
@@ -132,7 +131,7 @@ MODULE_DEVICE_TABLE(platform, bxt_wcove_tmu_id_table);
 
 static struct platform_driver bxt_wcove_tmu_driver = {
 	.probe = bxt_wcove_tmu_probe,
-	.remove = bxt_wcove_tmu_remove,
+	.remove_new = bxt_wcove_tmu_remove,
 	.driver = {
 		.name = "bxt_wcove_tmu",
 		.pm     = &bxtwc_tmu_pm_ops,
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [PATCH 16/29] platform/x86: intel: chtdc_ti_pwrbtn: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (14 preceding siblings ...)
  2023-03-02 14:47 ` [PATCH 15/29] platform/x86: intel: bxtwc_tmu: " Uwe Kleine-König
@ 2023-03-02 14:47 ` Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 17/29] platform/x86: intel: chtwc_int33fe: " Uwe Kleine-König
                   ` (13 subsequent siblings)
  29 siblings, 0 replies; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: Hans de Goede, Mark Gross
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel

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>
---
 drivers/platform/x86/intel/chtdc_ti_pwrbtn.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/platform/x86/intel/chtdc_ti_pwrbtn.c b/drivers/platform/x86/intel/chtdc_ti_pwrbtn.c
index 9606a994af22..615f8d1a0c68 100644
--- a/drivers/platform/x86/intel/chtdc_ti_pwrbtn.c
+++ b/drivers/platform/x86/intel/chtdc_ti_pwrbtn.c
@@ -67,11 +67,10 @@ static int chtdc_ti_pwrbtn_probe(struct platform_device *pdev)
 	return 0;
 }
 
-static int chtdc_ti_pwrbtn_remove(struct platform_device *pdev)
+static void chtdc_ti_pwrbtn_remove(struct platform_device *pdev)
 {
 	dev_pm_clear_wake_irq(&pdev->dev);
 	device_init_wakeup(&pdev->dev, false);
-	return 0;
 }
 
 static const struct platform_device_id chtdc_ti_pwrbtn_id_table[] = {
@@ -85,7 +84,7 @@ static struct platform_driver chtdc_ti_pwrbtn_driver = {
 		.name	= KBUILD_MODNAME,
 	},
 	.probe		= chtdc_ti_pwrbtn_probe,
-	.remove		= chtdc_ti_pwrbtn_remove,
+	.remove_new	= chtdc_ti_pwrbtn_remove,
 	.id_table	= chtdc_ti_pwrbtn_id_table,
 };
 module_platform_driver(chtdc_ti_pwrbtn_driver);
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [PATCH 17/29] platform/x86: intel: chtwc_int33fe: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (15 preceding siblings ...)
  2023-03-02 14:47 ` [PATCH 16/29] platform/x86: intel: chtdc_ti_pwrbtn: " Uwe Kleine-König
@ 2023-03-02 14:47 ` Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 18/29] platform/x86: intel: hid: " Uwe Kleine-König
                   ` (12 subsequent siblings)
  29 siblings, 0 replies; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: Hans de Goede, Mark Gross, Andy Shevchenko, Wolfram Sang,
	Heikki Krogerus, Maximilian Luz
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel

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>
---
 drivers/platform/x86/intel/chtwc_int33fe.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/platform/x86/intel/chtwc_int33fe.c b/drivers/platform/x86/intel/chtwc_int33fe.c
index 2c9a7d52be07..848baecc1bb0 100644
--- a/drivers/platform/x86/intel/chtwc_int33fe.c
+++ b/drivers/platform/x86/intel/chtwc_int33fe.c
@@ -405,7 +405,7 @@ static int cht_int33fe_typec_probe(struct platform_device *pdev)
 	return ret;
 }
 
-static int cht_int33fe_typec_remove(struct platform_device *pdev)
+static void cht_int33fe_typec_remove(struct platform_device *pdev)
 {
 	struct cht_int33fe_data *data = platform_get_drvdata(pdev);
 
@@ -414,8 +414,6 @@ static int cht_int33fe_typec_remove(struct platform_device *pdev)
 	i2c_unregister_device(data->battery_fg);
 
 	cht_int33fe_remove_nodes(data);
-
-	return 0;
 }
 
 static const struct acpi_device_id cht_int33fe_acpi_ids[] = {
@@ -429,7 +427,7 @@ static struct platform_driver cht_int33fe_typec_driver = {
 		.acpi_match_table = ACPI_PTR(cht_int33fe_acpi_ids),
 	},
 	.probe = cht_int33fe_typec_probe,
-	.remove = cht_int33fe_typec_remove,
+	.remove_new = cht_int33fe_typec_remove,
 };
 
 module_platform_driver(cht_int33fe_typec_driver);
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [PATCH 18/29] platform/x86: intel: hid: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (16 preceding siblings ...)
  2023-03-02 14:47 ` [PATCH 17/29] platform/x86: intel: chtwc_int33fe: " Uwe Kleine-König
@ 2023-03-02 14:47 ` Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 19/29] platform/x86: intel: int0002_vgpio: " Uwe Kleine-König
                   ` (11 subsequent siblings)
  29 siblings, 0 replies; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: Alex Hung, Hans de Goede, Mark Gross
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel

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>
---
 drivers/platform/x86/intel/hid.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/drivers/platform/x86/intel/hid.c b/drivers/platform/x86/intel/hid.c
index b6c06b37862e..5632bd3c534a 100644
--- a/drivers/platform/x86/intel/hid.c
+++ b/drivers/platform/x86/intel/hid.c
@@ -720,7 +720,7 @@ static int intel_hid_probe(struct platform_device *device)
 	return err;
 }
 
-static int intel_hid_remove(struct platform_device *device)
+static void intel_hid_remove(struct platform_device *device)
 {
 	acpi_handle handle = ACPI_HANDLE(&device->dev);
 
@@ -728,12 +728,6 @@ static int intel_hid_remove(struct platform_device *device)
 	acpi_remove_notify_handler(handle, ACPI_DEVICE_NOTIFY, notify_handler);
 	intel_hid_set_enable(&device->dev, false);
 	intel_button_array_enable(&device->dev, false);
-
-	/*
-	 * Even if we failed to shut off the event stream, we can still
-	 * safely detach from the device.
-	 */
-	return 0;
 }
 
 static struct platform_driver intel_hid_pl_driver = {
@@ -743,7 +737,7 @@ static struct platform_driver intel_hid_pl_driver = {
 		.pm = &intel_hid_pl_pm_ops,
 	},
 	.probe = intel_hid_probe,
-	.remove = intel_hid_remove,
+	.remove_new = intel_hid_remove,
 };
 
 /*
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [PATCH 19/29] platform/x86: intel: int0002_vgpio: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (17 preceding siblings ...)
  2023-03-02 14:47 ` [PATCH 18/29] platform/x86: intel: hid: " Uwe Kleine-König
@ 2023-03-02 14:47 ` Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 20/29] platform/x86: intel: int1092: intel_sar: " Uwe Kleine-König
                   ` (10 subsequent siblings)
  29 siblings, 0 replies; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: Hans de Goede, Mark Gross, Sebastian Andrzej Siewior, Thomas Gleixner
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel

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>
---
 drivers/platform/x86/intel/int0002_vgpio.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/platform/x86/intel/int0002_vgpio.c b/drivers/platform/x86/intel/int0002_vgpio.c
index 97cfbc520a02..b6708bab7c53 100644
--- a/drivers/platform/x86/intel/int0002_vgpio.c
+++ b/drivers/platform/x86/intel/int0002_vgpio.c
@@ -223,11 +223,10 @@ static int int0002_probe(struct platform_device *pdev)
 	return 0;
 }
 
-static int int0002_remove(struct platform_device *pdev)
+static void int0002_remove(struct platform_device *pdev)
 {
 	device_init_wakeup(&pdev->dev, false);
 	acpi_unregister_wakeup_handler(int0002_check_wake, NULL);
-	return 0;
 }
 
 static int int0002_suspend(struct device *dev)
@@ -273,7 +272,7 @@ static struct platform_driver int0002_driver = {
 		.pm			= &int0002_pm_ops,
 	},
 	.probe	= int0002_probe,
-	.remove	= int0002_remove,
+	.remove_new = int0002_remove,
 };
 
 module_platform_driver(int0002_driver);
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [PATCH 20/29] platform/x86: intel: int1092: intel_sar: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (18 preceding siblings ...)
  2023-03-02 14:47 ` [PATCH 19/29] platform/x86: intel: int0002_vgpio: " Uwe Kleine-König
@ 2023-03-02 14:47 ` Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 21/29] platform/x86: intel: int3472: discrete: " Uwe Kleine-König
                   ` (9 subsequent siblings)
  29 siblings, 0 replies; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: Shravan Sudhakar, Intel Corporation, Hans de Goede, Mark Gross
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel

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>
---
 drivers/platform/x86/intel/int1092/intel_sar.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/platform/x86/intel/int1092/intel_sar.c b/drivers/platform/x86/intel/int1092/intel_sar.c
index 352fc4596494..6246c066ade2 100644
--- a/drivers/platform/x86/intel/int1092/intel_sar.c
+++ b/drivers/platform/x86/intel/int1092/intel_sar.c
@@ -292,7 +292,7 @@ static int sar_probe(struct platform_device *device)
 	return result;
 }
 
-static int sar_remove(struct platform_device *device)
+static void sar_remove(struct platform_device *device)
 {
 	struct wwan_sar_context *context = dev_get_drvdata(&device->dev);
 	int reg;
@@ -304,12 +304,11 @@ static int sar_remove(struct platform_device *device)
 		kfree(context->config_data[reg].device_mode_info);
 
 	kfree(context);
-	return 0;
 }
 
 static struct platform_driver sar_driver = {
 	.probe = sar_probe,
-	.remove = sar_remove,
+	.remove_new = sar_remove,
 	.driver = {
 		.name = DRVNAME,
 		.acpi_match_table = ACPI_PTR(sar_device_ids)
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [PATCH 21/29] platform/x86: intel: int3472: discrete: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (19 preceding siblings ...)
  2023-03-02 14:47 ` [PATCH 20/29] platform/x86: intel: int1092: intel_sar: " Uwe Kleine-König
@ 2023-03-02 14:47 ` Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 22/29] platform/x86: intel: mrfld_pwrbtn: " Uwe Kleine-König
                   ` (8 subsequent siblings)
  29 siblings, 0 replies; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: Daniel Scally, Hans de Goede, Mark Gross
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel

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>
---
 drivers/platform/x86/intel/int3472/discrete.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/platform/x86/intel/int3472/discrete.c b/drivers/platform/x86/intel/int3472/discrete.c
index f064da74f50a..ef020e23e596 100644
--- a/drivers/platform/x86/intel/int3472/discrete.c
+++ b/drivers/platform/x86/intel/int3472/discrete.c
@@ -317,7 +317,7 @@ static int skl_int3472_parse_crs(struct int3472_discrete_device *int3472)
 	return 0;
 }
 
-static int skl_int3472_discrete_remove(struct platform_device *pdev)
+static void skl_int3472_discrete_remove(struct platform_device *pdev)
 {
 	struct int3472_discrete_device *int3472 = platform_get_drvdata(pdev);
 
@@ -326,8 +326,6 @@ static int skl_int3472_discrete_remove(struct platform_device *pdev)
 	skl_int3472_unregister_clock(int3472);
 	skl_int3472_unregister_pled(int3472);
 	skl_int3472_unregister_regulator(int3472);
-
-	return 0;
 }
 
 static int skl_int3472_discrete_probe(struct platform_device *pdev)
@@ -392,7 +390,7 @@ static struct platform_driver int3472_discrete = {
 		.acpi_match_table = int3472_device_id,
 	},
 	.probe = skl_int3472_discrete_probe,
-	.remove = skl_int3472_discrete_remove,
+	.remove_new = skl_int3472_discrete_remove,
 };
 module_platform_driver(int3472_discrete);
 
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [PATCH 22/29] platform/x86: intel: mrfld_pwrbtn: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (20 preceding siblings ...)
  2023-03-02 14:47 ` [PATCH 21/29] platform/x86: intel: int3472: discrete: " Uwe Kleine-König
@ 2023-03-02 14:47 ` Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 23/29] platform/x86: intel: pmc: core: " Uwe Kleine-König
                   ` (7 subsequent siblings)
  29 siblings, 0 replies; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: Hans de Goede, Mark Gross
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel

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>
---
 drivers/platform/x86/intel/mrfld_pwrbtn.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/platform/x86/intel/mrfld_pwrbtn.c b/drivers/platform/x86/intel/mrfld_pwrbtn.c
index d58fea51747e..549a3f586f3b 100644
--- a/drivers/platform/x86/intel/mrfld_pwrbtn.c
+++ b/drivers/platform/x86/intel/mrfld_pwrbtn.c
@@ -78,13 +78,12 @@ static int mrfld_pwrbtn_probe(struct platform_device *pdev)
 	return 0;
 }
 
-static int mrfld_pwrbtn_remove(struct platform_device *pdev)
+static void mrfld_pwrbtn_remove(struct platform_device *pdev)
 {
 	struct device *dev = &pdev->dev;
 
 	dev_pm_clear_wake_irq(dev);
 	device_init_wakeup(dev, false);
-	return 0;
 }
 
 static const struct platform_device_id mrfld_pwrbtn_id_table[] = {
@@ -98,7 +97,7 @@ static struct platform_driver mrfld_pwrbtn_driver = {
 		.name	= "mrfld_bcove_pwrbtn",
 	},
 	.probe		= mrfld_pwrbtn_probe,
-	.remove		= mrfld_pwrbtn_remove,
+	.remove_new	= mrfld_pwrbtn_remove,
 	.id_table	= mrfld_pwrbtn_id_table,
 };
 module_platform_driver(mrfld_pwrbtn_driver);
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [PATCH 23/29] platform/x86: intel: pmc: core: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (21 preceding siblings ...)
  2023-03-02 14:47 ` [PATCH 22/29] platform/x86: intel: mrfld_pwrbtn: " Uwe Kleine-König
@ 2023-03-02 14:47 ` Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 24/29] platform/x86: intel: telemetry: pltdrv: " Uwe Kleine-König
                   ` (6 subsequent siblings)
  29 siblings, 0 replies; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: Rajneesh Bhardwaj, David E Box, Hans de Goede, Mark Gross
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel

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>
---
 drivers/platform/x86/intel/pmc/core.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/platform/x86/intel/pmc/core.c b/drivers/platform/x86/intel/pmc/core.c
index 3a15d32d7644..e489d2175e42 100644
--- a/drivers/platform/x86/intel/pmc/core.c
+++ b/drivers/platform/x86/intel/pmc/core.c
@@ -1149,7 +1149,7 @@ static int pmc_core_probe(struct platform_device *pdev)
 	return 0;
 }
 
-static int pmc_core_remove(struct platform_device *pdev)
+static void pmc_core_remove(struct platform_device *pdev)
 {
 	struct pmc_dev *pmcdev = platform_get_drvdata(pdev);
 
@@ -1157,7 +1157,6 @@ static int pmc_core_remove(struct platform_device *pdev)
 	platform_set_drvdata(pdev, NULL);
 	mutex_destroy(&pmcdev->lock);
 	iounmap(pmcdev->regbase);
-	return 0;
 }
 
 static bool warn_on_s0ix_failures;
@@ -1264,7 +1263,7 @@ static struct platform_driver pmc_core_driver = {
 		.dev_groups = pmc_dev_groups,
 	},
 	.probe = pmc_core_probe,
-	.remove = pmc_core_remove,
+	.remove_new = pmc_core_remove,
 };
 
 module_platform_driver(pmc_core_driver);
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [PATCH 24/29] platform/x86: intel: telemetry: pltdrv: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (22 preceding siblings ...)
  2023-03-02 14:47 ` [PATCH 23/29] platform/x86: intel: pmc: core: " Uwe Kleine-König
@ 2023-03-02 14:47 ` Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 25/29] platform/x86: intel: vbtn: " Uwe Kleine-König
                   ` (5 subsequent siblings)
  29 siblings, 0 replies; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: Rajneesh Bhardwaj, David E. Box, Hans de Goede, Mark Gross
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel

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>
---
 drivers/platform/x86/intel/telemetry/pltdrv.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/platform/x86/intel/telemetry/pltdrv.c b/drivers/platform/x86/intel/telemetry/pltdrv.c
index 405dea87de6b..06311d0e9451 100644
--- a/drivers/platform/x86/intel/telemetry/pltdrv.c
+++ b/drivers/platform/x86/intel/telemetry/pltdrv.c
@@ -1156,15 +1156,14 @@ static int telemetry_pltdrv_probe(struct platform_device *pdev)
 	return ret;
 }
 
-static int telemetry_pltdrv_remove(struct platform_device *pdev)
+static void telemetry_pltdrv_remove(struct platform_device *pdev)
 {
 	telemetry_clear_pltdata();
-	return 0;
 }
 
 static struct platform_driver telemetry_soc_driver = {
 	.probe		= telemetry_pltdrv_probe,
-	.remove		= telemetry_pltdrv_remove,
+	.remove_new	= telemetry_pltdrv_remove,
 	.driver		= {
 		.name	= DRIVER_NAME,
 	},
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [PATCH 25/29] platform/x86: intel: vbtn: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (23 preceding siblings ...)
  2023-03-02 14:47 ` [PATCH 24/29] platform/x86: intel: telemetry: pltdrv: " Uwe Kleine-König
@ 2023-03-02 14:47 ` Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 26/29] platform/x86: samsung-q10: " Uwe Kleine-König
                   ` (4 subsequent siblings)
  29 siblings, 0 replies; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: AceLan Kao, Hans de Goede, Mark Gross
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel

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>
---
 drivers/platform/x86/intel/vbtn.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/drivers/platform/x86/intel/vbtn.c b/drivers/platform/x86/intel/vbtn.c
index c5e4e35c8d20..6fa1735ad7a4 100644
--- a/drivers/platform/x86/intel/vbtn.c
+++ b/drivers/platform/x86/intel/vbtn.c
@@ -325,18 +325,12 @@ static int intel_vbtn_probe(struct platform_device *device)
 	return 0;
 }
 
-static int intel_vbtn_remove(struct platform_device *device)
+static void intel_vbtn_remove(struct platform_device *device)
 {
 	acpi_handle handle = ACPI_HANDLE(&device->dev);
 
 	device_init_wakeup(&device->dev, false);
 	acpi_remove_notify_handler(handle, ACPI_DEVICE_NOTIFY, notify_handler);
-
-	/*
-	 * Even if we failed to shut off the event stream, we can still
-	 * safely detach from the device.
-	 */
-	return 0;
 }
 
 static int intel_vbtn_pm_prepare(struct device *dev)
@@ -377,7 +371,7 @@ static struct platform_driver intel_vbtn_pl_driver = {
 		.pm = &intel_vbtn_pm_ops,
 	},
 	.probe = intel_vbtn_probe,
-	.remove = intel_vbtn_remove,
+	.remove_new = intel_vbtn_remove,
 };
 
 static acpi_status __init
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [PATCH 26/29] platform/x86: samsung-q10: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (24 preceding siblings ...)
  2023-03-02 14:47 ` [PATCH 25/29] platform/x86: intel: vbtn: " Uwe Kleine-König
@ 2023-03-02 14:47 ` Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 27/29] platform/x86: serial-multi-instantiate: " Uwe Kleine-König
                   ` (3 subsequent siblings)
  29 siblings, 0 replies; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: Hans de Goede, Mark Gross
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel

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>
---
 drivers/platform/x86/samsung-q10.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/platform/x86/samsung-q10.c b/drivers/platform/x86/samsung-q10.c
index 6eb08b539311..134e2c3d91ca 100644
--- a/drivers/platform/x86/samsung-q10.c
+++ b/drivers/platform/x86/samsung-q10.c
@@ -65,14 +65,12 @@ static int samsungq10_probe(struct platform_device *pdev)
 	return 0;
 }
 
-static int samsungq10_remove(struct platform_device *pdev)
+static void samsungq10_remove(struct platform_device *pdev)
 {
 
 	struct backlight_device *bd = platform_get_drvdata(pdev);
 
 	backlight_device_unregister(bd);
-
-	return 0;
 }
 
 static struct platform_driver samsungq10_driver = {
@@ -80,7 +78,7 @@ static struct platform_driver samsungq10_driver = {
 		.name	= KBUILD_MODNAME,
 	},
 	.probe		= samsungq10_probe,
-	.remove		= samsungq10_remove,
+	.remove_new	= samsungq10_remove,
 };
 
 static struct platform_device *samsungq10_device;
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [PATCH 27/29] platform/x86: serial-multi-instantiate: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (25 preceding siblings ...)
  2023-03-02 14:47 ` [PATCH 26/29] platform/x86: samsung-q10: " Uwe Kleine-König
@ 2023-03-02 14:47 ` Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 28/29] platform/x86: wmi: " Uwe Kleine-König
                   ` (2 subsequent siblings)
  29 siblings, 0 replies; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: Hans de Goede, Mark Gross
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel

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>
---
 drivers/platform/x86/serial-multi-instantiate.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/platform/x86/serial-multi-instantiate.c b/drivers/platform/x86/serial-multi-instantiate.c
index 5362f1a7b77c..cd25125b7923 100644
--- a/drivers/platform/x86/serial-multi-instantiate.c
+++ b/drivers/platform/x86/serial-multi-instantiate.c
@@ -265,13 +265,11 @@ static int smi_probe(struct platform_device *pdev)
 	}
 }
 
-static int smi_remove(struct platform_device *pdev)
+static void smi_remove(struct platform_device *pdev)
 {
 	struct smi *smi = platform_get_drvdata(pdev);
 
 	smi_devs_unregister(smi);
-
-	return 0;
 }
 
 static const struct smi_node bsg1160_data = {
@@ -339,7 +337,7 @@ static struct platform_driver smi_driver = {
 		.acpi_match_table = smi_acpi_ids,
 	},
 	.probe = smi_probe,
-	.remove = smi_remove,
+	.remove_new = smi_remove,
 };
 module_platform_driver(smi_driver);
 
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [PATCH 28/29] platform/x86: wmi: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (26 preceding siblings ...)
  2023-03-02 14:47 ` [PATCH 27/29] platform/x86: serial-multi-instantiate: " Uwe Kleine-König
@ 2023-03-02 14:47 ` Uwe Kleine-König
  2023-03-02 14:47 ` [PATCH 29/29] platform/x86: xo1-rfkill: " Uwe Kleine-König
  2023-03-07 11:23 ` [PATCH 00/29] platform/x86: " Hans de Goede
  29 siblings, 0 replies; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: Hans de Goede, Mark Gross
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel

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>
---
 drivers/platform/x86/wmi.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c
index 4fe7650dd014..d81319a502ef 100644
--- a/drivers/platform/x86/wmi.c
+++ b/drivers/platform/x86/wmi.c
@@ -1369,7 +1369,7 @@ static void acpi_wmi_notify_handler(acpi_handle handle, u32 event,
 		event, 0);
 }
 
-static int acpi_wmi_remove(struct platform_device *device)
+static void acpi_wmi_remove(struct platform_device *device)
 {
 	struct acpi_device *acpi_device = ACPI_COMPANION(&device->dev);
 
@@ -1379,8 +1379,6 @@ static int acpi_wmi_remove(struct platform_device *device)
 				ACPI_ADR_SPACE_EC, &acpi_wmi_ec_space_handler);
 	wmi_free_devices(acpi_device);
 	device_unregister(dev_get_drvdata(&device->dev));
-
-	return 0;
 }
 
 static int acpi_wmi_probe(struct platform_device *device)
@@ -1468,7 +1466,7 @@ static struct platform_driver acpi_wmi_driver = {
 		.acpi_match_table = wmi_device_ids,
 	},
 	.probe = acpi_wmi_probe,
-	.remove = acpi_wmi_remove,
+	.remove_new = acpi_wmi_remove,
 };
 
 static int __init acpi_wmi_init(void)
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [PATCH 29/29] platform/x86: xo1-rfkill: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (27 preceding siblings ...)
  2023-03-02 14:47 ` [PATCH 28/29] platform/x86: wmi: " Uwe Kleine-König
@ 2023-03-02 14:47 ` Uwe Kleine-König
  2023-03-07 11:23 ` [PATCH 00/29] platform/x86: " Hans de Goede
  29 siblings, 0 replies; 32+ messages in thread
From: Uwe Kleine-König @ 2023-03-02 14:47 UTC (permalink / raw)
  To: Hans de Goede, Mark Gross
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel

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>
---
 drivers/platform/x86/xo1-rfkill.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/platform/x86/xo1-rfkill.c b/drivers/platform/x86/xo1-rfkill.c
index cb3253c10ef3..e64d5646b4c7 100644
--- a/drivers/platform/x86/xo1-rfkill.c
+++ b/drivers/platform/x86/xo1-rfkill.c
@@ -56,12 +56,11 @@ static int xo1_rfkill_probe(struct platform_device *pdev)
 	return 0;
 }
 
-static int xo1_rfkill_remove(struct platform_device *pdev)
+static void xo1_rfkill_remove(struct platform_device *pdev)
 {
 	struct rfkill *rfk = platform_get_drvdata(pdev);
 	rfkill_unregister(rfk);
 	rfkill_destroy(rfk);
-	return 0;
 }
 
 static struct platform_driver xo1_rfkill_driver = {
@@ -69,7 +68,7 @@ static struct platform_driver xo1_rfkill_driver = {
 		.name = "xo1-rfkill",
 	},
 	.probe		= xo1_rfkill_probe,
-	.remove		= xo1_rfkill_remove,
+	.remove_new	= xo1_rfkill_remove,
 };
 
 module_platform_driver(xo1_rfkill_driver);
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 32+ messages in thread

* Re: [PATCH 10/29] platform/x86: dell: dell-smo8800: Convert to platform remove callback returning void
  2023-03-02 14:47 ` [PATCH 10/29] platform/x86: dell: dell-smo8800: " Uwe Kleine-König
@ 2023-03-02 17:19   ` Pali Rohár
  0 siblings, 0 replies; 32+ messages in thread
From: Pali Rohár @ 2023-03-02 17:19 UTC (permalink / raw)
  To: Uwe Kleine-König; +Cc: platform-driver-x86, linux-kernel

On Thursday 02 March 2023 15:47:13 Uwe Kleine-König wrote:
> 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>

Acked-by: Pali Rohár <pali@kernel.org>

> ---
>  drivers/platform/x86/dell/dell-smo8800.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/platform/x86/dell/dell-smo8800.c b/drivers/platform/x86/dell/dell-smo8800.c
> index 8d6b7a83cf24..f7ec17c56833 100644
> --- a/drivers/platform/x86/dell/dell-smo8800.c
> +++ b/drivers/platform/x86/dell/dell-smo8800.c
> @@ -154,14 +154,13 @@ static int smo8800_probe(struct platform_device *device)
>  	return err;
>  }
>  
> -static int smo8800_remove(struct platform_device *device)
> +static void smo8800_remove(struct platform_device *device)
>  {
>  	struct smo8800_device *smo8800 = platform_get_drvdata(device);
>  
>  	free_irq(smo8800->irq, smo8800);
>  	misc_deregister(&smo8800->miscdev);
>  	dev_dbg(&device->dev, "device /dev/freefall unregistered\n");
> -	return 0;
>  }
>  
>  /* NOTE: Keep this list in sync with drivers/i2c/busses/i2c-i801.c */
> @@ -180,7 +179,7 @@ MODULE_DEVICE_TABLE(acpi, smo8800_ids);
>  
>  static struct platform_driver smo8800_driver = {
>  	.probe = smo8800_probe,
> -	.remove = smo8800_remove,
> +	.remove_new = smo8800_remove,
>  	.driver = {
>  		.name = DRIVER_NAME,
>  		.acpi_match_table = smo8800_ids,
> -- 
> 2.39.1
> 

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PATCH 00/29] platform/x86: Convert to platform remove callback returning void
  2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (28 preceding siblings ...)
  2023-03-02 14:47 ` [PATCH 29/29] platform/x86: xo1-rfkill: " Uwe Kleine-König
@ 2023-03-07 11:23 ` Hans de Goede
  29 siblings, 0 replies; 32+ messages in thread
From: Hans de Goede @ 2023-03-07 11:23 UTC (permalink / raw)
  To: Uwe Kleine-König, Lee, Chun-Yi, Mark Gross, Andrea Ho,
	Naveen Krishna Chatradhi, Shyam Sundar S K, Santosh Kumar Yadav,
	Peter Korsgaard, Cezary Jackiewicz, Stuart Hayes,
	Pali Rohár, Eric Piel, Barnabás Pőcze,
	Jorge Lopez, Ike Panhc, Andy Shevchenko, Wolfram Sang,
	Heikki Krogerus, Maximilian Luz, Alex Hung,
	Sebastian Andrzej Siewior, Thomas Gleixner, Shravan Sudhakar,
	Intel Corporation, Daniel Scally, Rajneesh Bhardwaj,
	David E. Box, AceLan Kao
  Cc: kernel, Greg Kroah-Hartman, platform-driver-x86, linux-kernel,
	Carlos Bilbao

Hi Uwe,

On 3/2/23 15:47, Uwe Kleine-König wrote:
> Hello,
> 
> this patch series adapts the platform drivers below drivers/platform/x86
> to use the .remove_new() callback. Compared to the traditional .remove()
> callback .remove_new() returns no value. This is a good thing because
> the driver core doesn't (and cannot) cope for errors during remove. The
> only effect of a non-zero return value in .remove() is that the driver
> core emits a warning. The device is removed anyhow and an early return
> from .remove() usually yields a resource leak.
> 
> By changing the remove callback to return void driver authors cannot
> reasonably assume any more that there is some kind of cleanup later.
> 
> All drivers touched here returned zero unconditionally in their remove
> callback, so they could all be converted trivially to .remove_new().
> 
> Note that this series depends on commit 5c5a7680e67b ("platform: Provide
> a remove callback that returns no value") that is already in Linus' tree
> but not yet included in a tagged version.

Thank you for your patch series, I've applied this series to my
review-hans branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans

Once I've run some tests on this branch the patches there will be
added to the platform-drivers-x86/for-next branch and eventually
will be included in the pdx86 pull-request to Linus for the next
merge-window.

Regards,

Hans




> Uwe Kleine-König (29):
>   platform/x86: acer-wmi: Convert to platform remove callback returning void
>   platform/x86: adv_swbutton: Convert to platform remove callback returning void
>   platform/x86: amd: hsmp: Convert to platform remove callback returning void
>   platform/x86: amd: pmc: Convert to platform remove callback returning void
>   platform/x86: amd: pmf: core: Convert to platform remove callback returning void
>   platform/x86: amilo-rfkill: Convert to platform remove callback returning void
>   platform/x86: barco-p50-gpio: Convert to platform remove callback returning void
>   platform/x86: compal-laptop: Convert to platform remove callback returning void
>   platform/x86: dell: dcdbas: Convert to platform remove callback returning void
>   platform/x86: dell: dell-smo8800: Convert to platform remove callback returning void
>   platform/x86: hp: hp_accel: Convert to platform remove callback returning void
>   platform/x86: hp: tc1100-wmi: Convert to platform remove callback returning void
>   platform/x86: huawei-wmi: Convert to platform remove callback returning void
>   platform/x86: ideapad-laptop: Convert to platform remove callback returning void
>   platform/x86: intel: bxtwc_tmu: Convert to platform remove callback returning void
>   platform/x86: intel: chtdc_ti_pwrbtn: Convert to platform remove callback returning void
>   platform/x86: intel: chtwc_int33fe: Convert to platform remove callback returning void
>   platform/x86: intel: hid: Convert to platform remove callback returning void
>   platform/x86: intel: int0002_vgpio: Convert to platform remove callback returning void
>   platform/x86: intel: int1092: intel_sar: Convert to platform remove callback returning void
>   platform/x86: intel: int3472: discrete: Convert to platform remove callback returning void
>   platform/x86: intel: mrfld_pwrbtn: Convert to platform remove callback returning void
>   platform/x86: intel: pmc: core: Convert to platform remove callback returning void
>   platform/x86: intel: telemetry: pltdrv: Convert to platform remove callback returning void
>   platform/x86: intel: vbtn: Convert to platform remove callback returning void
>   platform/x86: samsung-q10: Convert to platform remove callback returning void
>   platform/x86: serial-multi-instantiate: Convert to platform remove callback returning void
>   platform/x86: wmi: Convert to platform remove callback returning void
>   platform/x86: xo1-rfkill: Convert to platform remove callback returning void
> 
>  drivers/platform/x86/acer-wmi.c                 |  5 ++---
>  drivers/platform/x86/adv_swbutton.c             |  6 ++----
>  drivers/platform/x86/amd/hsmp.c                 |  6 ++----
>  drivers/platform/x86/amd/pmc.c                  |  5 ++---
>  drivers/platform/x86/amd/pmf/core.c             |  5 ++---
>  drivers/platform/x86/amilo-rfkill.c             |  5 ++---
>  drivers/platform/x86/barco-p50-gpio.c           |  6 ++----
>  drivers/platform/x86/compal-laptop.c            |  8 +++-----
>  drivers/platform/x86/dell/dcdbas.c              |  6 ++----
>  drivers/platform/x86/dell/dell-smo8800.c        |  5 ++---
>  drivers/platform/x86/hp/hp_accel.c              |  5 ++---
>  drivers/platform/x86/hp/tc1100-wmi.c            |  6 ++----
>  drivers/platform/x86/huawei-wmi.c               |  6 ++----
>  drivers/platform/x86/ideapad-laptop.c           |  6 ++----
>  drivers/platform/x86/intel/bxtwc_tmu.c          |  5 ++---
>  drivers/platform/x86/intel/chtdc_ti_pwrbtn.c    |  5 ++---
>  drivers/platform/x86/intel/chtwc_int33fe.c      |  6 ++----
>  drivers/platform/x86/intel/hid.c                | 10 ++--------
>  drivers/platform/x86/intel/int0002_vgpio.c      |  5 ++---
>  drivers/platform/x86/intel/int1092/intel_sar.c  |  5 ++---
>  drivers/platform/x86/intel/int3472/discrete.c   |  6 ++----
>  drivers/platform/x86/intel/mrfld_pwrbtn.c       |  5 ++---
>  drivers/platform/x86/intel/pmc/core.c           |  5 ++---
>  drivers/platform/x86/intel/telemetry/pltdrv.c   |  5 ++---
>  drivers/platform/x86/intel/vbtn.c               | 10 ++--------
>  drivers/platform/x86/samsung-q10.c              |  6 ++----
>  drivers/platform/x86/serial-multi-instantiate.c |  6 ++----
>  drivers/platform/x86/wmi.c                      |  6 ++----
>  drivers/platform/x86/xo1-rfkill.c               |  5 ++---
>  29 files changed, 59 insertions(+), 111 deletions(-)
> 
> base-commit: ee3f96b164688dae21e2466a57f2e806b64e8a37


^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2023-03-07 11:24 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-02 14:47 [PATCH 00/29] platform/x86: Convert to platform remove callback returning void Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 01/29] platform/x86: acer-wmi: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 02/29] platform/x86: adv_swbutton: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 03/29] platform/x86: amd: hsmp: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 04/29] platform/x86: amd: pmc: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 05/29] platform/x86: amd: pmf: core: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 06/29] platform/x86: amilo-rfkill: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 07/29] platform/x86: barco-p50-gpio: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 08/29] platform/x86: compal-laptop: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 09/29] platform/x86: dell: dcdbas: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 10/29] platform/x86: dell: dell-smo8800: " Uwe Kleine-König
2023-03-02 17:19   ` Pali Rohár
2023-03-02 14:47 ` [PATCH 11/29] platform/x86: hp: hp_accel: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 12/29] platform/x86: hp: tc1100-wmi: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 13/29] platform/x86: huawei-wmi: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 14/29] platform/x86: ideapad-laptop: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 15/29] platform/x86: intel: bxtwc_tmu: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 16/29] platform/x86: intel: chtdc_ti_pwrbtn: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 17/29] platform/x86: intel: chtwc_int33fe: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 18/29] platform/x86: intel: hid: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 19/29] platform/x86: intel: int0002_vgpio: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 20/29] platform/x86: intel: int1092: intel_sar: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 21/29] platform/x86: intel: int3472: discrete: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 22/29] platform/x86: intel: mrfld_pwrbtn: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 23/29] platform/x86: intel: pmc: core: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 24/29] platform/x86: intel: telemetry: pltdrv: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 25/29] platform/x86: intel: vbtn: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 26/29] platform/x86: samsung-q10: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 27/29] platform/x86: serial-multi-instantiate: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 28/29] platform/x86: wmi: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 29/29] platform/x86: xo1-rfkill: " Uwe Kleine-König
2023-03-07 11:23 ` [PATCH 00/29] platform/x86: " Hans de Goede

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.