clk: clk-composite: Resolve parent clock by name
Use clock-names property which is accessible via parent clock OF node to look up the parent clock by name instead of depending on unreliable global clock name to perform look up. Signed-off-by: Marek Vasut <marex@denx.de>
This commit is contained in:

committed by
Fabio Estevam

parent
45c6b6a850
commit
f98cd471f0
@@ -149,7 +149,7 @@ struct clk *clk_register_composite(struct udevice *dev, const char *name,
|
||||
clk = &composite->clk;
|
||||
clk->flags = flags;
|
||||
ret = clk_register(clk, UBOOT_DM_CLK_COMPOSITE, name,
|
||||
parent_names[clk_composite_get_parent(clk)]);
|
||||
clk_resolve_parent_clk(dev, parent_names[clk_composite_get_parent(clk)]));
|
||||
if (ret) {
|
||||
clk = ERR_PTR(ret);
|
||||
goto err;
|
||||
|
Reference in New Issue
Block a user