summaryrefslogtreecommitdiffstats
path: root/drivers/clk/ti/mux.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2022-02-04 08:14:49 +0100
committerStephen Boyd <sboyd@kernel.org>2022-03-11 03:55:59 +0100
commited06099c5d0b329082cc19c58eace0b20bf7fe70 (patch)
treecdc90f4803d522ffb1f2220a5d2254824c2727e5 /drivers/clk/ti/mux.c
parentclk: ti: Update pll and clockdomain clocks to use ti_dt_clk_name() (diff)
downloadlinux-ed06099c5d0b329082cc19c58eace0b20bf7fe70.tar.xz
linux-ed06099c5d0b329082cc19c58eace0b20bf7fe70.zip
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/mux.c')
-rw-r--r--drivers/clk/ti/mux.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/clk/ti/mux.c b/drivers/clk/ti/mux.c
index 0069e7cf3ebc..15de513d2d81 100644
--- a/drivers/clk/ti/mux.c
+++ b/drivers/clk/ti/mux.c
@@ -176,6 +176,7 @@ static void of_mux_clk_setup(struct device_node *node)
struct clk_omap_reg reg;
unsigned int num_parents;
const char **parent_names;
+ const char *name;
u8 clk_mux_flags = 0;
u32 mask = 0;
u32 shift = 0;
@@ -213,7 +214,8 @@ static void of_mux_clk_setup(struct device_node *node)
mask = (1 << fls(mask)) - 1;
- clk = _register_mux(NULL, node->name, parent_names, num_parents,
+ name = ti_dt_clk_name(node);
+ clk = _register_mux(NULL, name, parent_names, num_parents,
flags, &reg, shift, mask, latch, clk_mux_flags,
NULL);