summaryrefslogtreecommitdiff
path: root/drivers/mfd
diff options
context:
space:
mode:
authorThomas Richard <thomas.richard@bootlin.com>2026-07-13 16:43:43 +0200
committerLee Jones <lee@kernel.org>2026-07-30 14:33:13 +0100
commit2970c2db8ab3d97ea6250c14ca49b1e1731115ab (patch)
treead8b39e4980c85f5d966e653c9ea4f7560c47100 /drivers/mfd
parent1ae94ed761a4300df4d947f0f9b5babc3c0a2cb9 (diff)
downloadlinux-next-2970c2db8ab3d97ea6250c14ca49b1e1731115ab.tar.gz
linux-next-2970c2db8ab3d97ea6250c14ca49b1e1731115ab.zip
mfd: cgbc: Fix teardown ordering in cgbc_remove()
Release Board Controller session once children are removed by the core. Cc: stable@vger.kernel.org Reported-by: Sashiko <sashiko-bot@kernel.org> Closes: https://sashiko.dev/#/patchset/cover.1783507945.git.u.kleine-koenig%40baylibre.com?part=19 Fixes: 6f1067cfbee7 ("mfd: Add Congatec Board Controller driver") Signed-off-by: Thomas Richard <thomas.richard@bootlin.com> Link: https://patch.msgid.link/20260713-cgbc-core-fix-cgbc-remove-v1-1-79274ad62b3a@bootlin.com Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/cgbc-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/cgbc-core.c b/drivers/mfd/cgbc-core.c
index 10bb4b414c34..2becaf797646 100644
--- a/drivers/mfd/cgbc-core.c
+++ b/drivers/mfd/cgbc-core.c
@@ -364,9 +364,9 @@ static void cgbc_remove(struct platform_device *pdev)
{
struct cgbc_device_data *cgbc = platform_get_drvdata(pdev);
- cgbc_session_release(cgbc);
-
mfd_remove_devices(&pdev->dev);
+
+ cgbc_session_release(cgbc);
}
static struct platform_driver cgbc_driver = {