[PATCH] mfd: stm32-timers: depopulate child devices on populate failure
Pengpeng Hou
pengpeng at iscas.ac.cn
Wed Dec 2 20:02:29 PST 2026
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
More information about the linux-arm-kernel
mailing list