The clocks list associated with a PD is the same across all devices
attached to the same PD. Re-initializing it each time a new device is
attached results in missing some clocks.
[ Aisheng: "Improve commit message" ]
Reviewed-by: Anson Huang <anson.huang@nxp.com>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
int rc, index, num_clks;
pd = container_of(genpd, struct imx8_pm_domain, pd);
- INIT_LIST_HEAD(&pd->clks);
num_clks = of_count_phandle_with_args(node, "assigned-clocks",
"#clock-cells");