diff options
author | Tony Lindgren <tony@atomide.com> | 2022-02-04 10:14:49 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2022-03-11 05:55:59 +0300 |
commit | ed06099c5d0b329082cc19c58eace0b20bf7fe70 (patch) | |
tree | cdc90f4803d522ffb1f2220a5d2254824c2727e5 /drivers/clk/ti/divider.c | |
parent | 9e56a7d4263ca1c51d867e811cf2dd7e61b6469e (diff) | |
download | linux-ed06099c5d0b329082cc19c58eace0b20bf7fe70.tar.xz |
clk: ti: Update component clocks to use ti_dt_clk_name()
Let's update all the TI component clocks to use ti_dt_clk_name() instead
of devicetree node name if available.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20220204071449.16762-9-tony@atomide.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/ti/divider.c')
-rw-r--r-- | drivers/clk/ti/divider.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/clk/ti/divider.c b/drivers/clk/ti/divider.c index 28080df92f72..9fbea0997b43 100644 --- a/drivers/clk/ti/divider.c +++ b/drivers/clk/ti/divider.c @@ -320,10 +320,12 @@ static struct clk *_register_divider(struct device_node *node, struct clk *clk; struct clk_init_data init; const char *parent_name; + const char *name; parent_name = of_clk_get_parent_name(node, 0); - init.name = node->name; + name = ti_dt_clk_name(node); + init.name = name; init.ops = &ti_clk_divider_ops; init.flags = flags; init.parent_names = (parent_name ? &parent_name : NULL); @@ -332,7 +334,7 @@ static struct clk *_register_divider(struct device_node *node, div->hw.init = &init; /* register the clock */ - clk = ti_clk_register(NULL, &div->hw, node->name); + clk = ti_clk_register(NULL, &div->hw, name); if (IS_ERR(clk)) kfree(div); |