mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-20 14:09:28 +07:00
6b81e926bb
commit 2ef02b846ee2526249a562a66d6dcb25fcbca9d8 upstream.
The cdns3 core device is populated by calling of_platform_populate,
the flag OF_POPULATED is set for core device node, if this flag
is not cleared, when calling of_platform_populate the second time
after loading parent module again, the OF code will not try to create
platform device for core device.
To fix it, it uses of_platform_depopulate to depopulate the core
device which the parent created, and the flag OF_POPULATED for
core device node will be cleared accordingly.
Cc: <stable@vger.kernel.org>
Fixes:
|
||
---|---|---|
.. | ||
cdns3-imx.c | ||
cdns3-pci-wrap.c | ||
cdns3-ti.c | ||
core.c | ||
core.h | ||
debug.h | ||
drd.c | ||
drd.h | ||
ep0.c | ||
gadget-export.h | ||
gadget.c | ||
gadget.h | ||
host-export.h | ||
host.c | ||
Kconfig | ||
Makefile | ||
trace.c | ||
trace.h |