]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
soc: microchip: mpfs-mss-top-sysreg: Fix resource leak on driver unbind
authorFelix Gu <ustc.gu@gmail.com>
Mon, 9 Mar 2026 12:16:15 +0000 (20:16 +0800)
committerConor Dooley <conor.dooley@microchip.com>
Thu, 19 Mar 2026 15:55:16 +0000 (15:55 +0000)
commit3bfc213d4675736567a4e263c51c25144d565949
treed7769723a108d1753239ebc265c53f5c3d97cbfb
parent27459f86a43792d5c29f267a41dbd387601e772b
soc: microchip: mpfs-mss-top-sysreg: Fix resource leak on driver unbind

Use devm_mfd_add_devices() instead of mfd_add_devices() to ensure
child devices are properly removed when the driver unbinds.

Fixes: 4aac11c9a6e7 ("soc: microchip: add mfd drivers for two syscon regions on PolarFire SoC")
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
drivers/soc/microchip/mpfs-mss-top-sysreg.c