Re: [PATCH] mfd: stm32-timers: depopulate child devices on populate failure
From: Pengpeng Hou
Date: Wed Dec 02 2026 - 23:02:52 EST
Hi Lee,
I went back to of_platform_bus_create(). With the NULL match table
used by stm32-timers it doesn't recurse into a child bus, and failure
to create a child platform device isn't propagated as an error there.
I haven't identified a return path that both reports failure to this
probe and leaves a partially populated bus requiring this unwind.
The ordering on normal remove doesn't prove that such a probe error
exists. That's why I no longer think a matching depopulate call
belongs on every error path, or in this driver as proposed.
Thanks,
Pengpeng