[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231123165627.492259-1-u.kleine-koenig@pengutronix.de>
Date: Thu, 23 Nov 2023 17:56:28 +0100
From: Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>
To: Lee Jones <lee@...nel.org>
Cc: Linus Walleij <linus.walleij@...aro.org>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Benson Leung <bleung@...omium.org>,
Guenter Roeck <groeck@...omium.org>,
chrome-platform@...ts.linux.dev,
Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>,
Alim Akhtar <alim.akhtar@...sung.com>,
linux-samsung-soc@...r.kernel.org, Shawn Guo <shawnguo@...nel.org>,
Sascha Hauer <s.hauer@...gutronix.de>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Fabio Estevam <festevam@...il.com>,
NXP Linux Team <linux-imx@....com>,
Tony Lindgren <tony@...mide.com>, linux-omap@...r.kernel.org,
Andy Gross <agross@...nel.org>,
Bjorn Andersson <andersson@...nel.org>,
Konrad Dybcio <konrad.dybcio@...aro.org>,
linux-arm-msm@...r.kernel.org,
Fabrice Gasnier <fabrice.gasnier@...s.st.com>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
Alexandre Torgue <alexandre.torgue@...s.st.com>,
linux-stm32@...md-mailman.stormreply.com
Subject: [PATCH v2 00/18] mfd: Convert to platform remove callback returning void
Hello,
this series converts all platform drivers below drivers/mfd to use
.remove_new(). 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 resource leaks and/or use-after-free bugs.
See commit 5c5a7680e67b ("platform: Provide a remove callback that
returns no value") for an extended explanation and the eventual goal.
All drivers converted here already returned zero unconditionally in
.remove(), so they are converted here trivially.
Compared to the (implicit) v1[1] I added two review tags and rebased to
today's next/master. Also I failed to Cc: all patches of v1 to lkml.
Best regards
Uwe
[1] https://lore.kernel.org/all/20231106171708.3892347-1-u.kleine-koenig@pengutronix.de
Uwe Kleine-König (18):
mfd: ab8500-sysctrl: Convert to platform remove callback returning
void
mfd: cros_ec_dev: Convert to platform remove callback returning void
mfd: exynos-lpass: Convert to platform remove callback returning void
mfd: fsl-imx25-tsadc: Convert to platform remove callback returning
void
mfd: hi655x-pmic: Convert to platform remove callback returning void
mfd: intel-lpss-acpi: Convert to platform remove callback returning
void
mfd: kempld-core: Convert to platform remove callback returning void
mfd: mcp-sa11x0: Convert to platform remove callback returning void
mfd: mxs-lradc: Convert to platform remove callback returning void
mfd: omap-usb-host: Convert to platform remove callback returning void
mfd: omap-usb-tll: Convert to platform remove callback returning void
mfd: pcf50633-adc: Convert to platform remove callback returning void
mfd: qcom-pm8xxx: Convert to platform remove callback returning void
mfd: sm501: Convert to platform remove callback returning void
mfd: stm32-timers: Convert to platform remove callback returning void
mfd: ti_am335x_tscadc: Convert to platform remove callback returning
void
mfd: tps65911-comparator: Convert to platform remove callback
returning void
mfd: twl4030-audio: Convert to platform remove callback returning void
drivers/mfd/ab8500-sysctrl.c | 6 ++----
drivers/mfd/cros_ec_dev.c | 5 ++---
drivers/mfd/exynos-lpass.c | 6 ++----
drivers/mfd/fsl-imx25-tsadc.c | 6 ++----
drivers/mfd/hi655x-pmic.c | 5 ++---
drivers/mfd/intel-lpss-acpi.c | 6 ++----
drivers/mfd/kempld-core.c | 6 ++----
drivers/mfd/mcp-sa11x0.c | 6 ++----
drivers/mfd/mxs-lradc.c | 6 ++----
drivers/mfd/omap-usb-host.c | 5 ++---
drivers/mfd/omap-usb-tll.c | 5 ++---
drivers/mfd/pcf50633-adc.c | 6 ++----
drivers/mfd/qcom-pm8xxx.c | 6 ++----
drivers/mfd/sm501.c | 6 ++----
drivers/mfd/stm32-timers.c | 6 ++----
drivers/mfd/ti_am335x_tscadc.c | 6 ++----
drivers/mfd/tps65911-comparator.c | 6 ++----
drivers/mfd/twl4030-audio.c | 6 ++----
18 files changed, 36 insertions(+), 68 deletions(-)
base-commit: 4e87148f80d198ba5febcbcc969c6b9471099a09
--
2.42.0
Powered by blists - more mailing lists