mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-09-18 23:09:29 +02:00
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: 6f1067cfbe ("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>
This commit is contained in:
committed by
Lee Jones
parent
1ae94ed761
commit
2970c2db8a
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user