]> git.ipfire.org Git - thirdparty/linux.git/commit
soc: microchip: mpfs-control-scb: Fix resource leak on driver unbind
authorFelix Gu <ustc.gu@gmail.com>
Mon, 9 Mar 2026 12:16:14 +0000 (20:16 +0800)
committerConor Dooley <conor.dooley@microchip.com>
Thu, 19 Mar 2026 15:55:16 +0000 (15:55 +0000)
commit27459f86a43792d5c29f267a41dbd387601e772b
tree2ff68dda4f7b42b989dbe4c6ae98aeaeb5efb415
parent0528a348b04b327a4611e29589beb4c9ae81304a
soc: microchip: mpfs-control-scb: 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-control-scb.c