diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-05-29 17:39:37 +0800 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2019-06-07 11:54:48 -0700 |
commit | da6a5dda5e843f0a8904c2d171d585ae360f415e (patch) | |
tree | 97e3713738a9219edfe56f00c28efbfea487c04f /drivers/clk/ti/mux.c | |
parent | 60e9c3703c77b476565de337c676f6655bb2a8de (diff) | |
download | linux-stable-da6a5dda5e843f0a8904c2d171d585ae360f415e.tar.gz linux-stable-da6a5dda5e843f0a8904c2d171d585ae360f415e.tar.bz2 linux-stable-da6a5dda5e843f0a8904c2d171d585ae360f415e.zip |
clk: ti: Remove unused functions
They are not used any more since
commit 7558562a70fb ("clk: ti: Drop legacy clk-3xxx-legacy code")
Reported-by: Hulk Robot <hulkci@huawei.com>
Suggested-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/ti/mux.c')
-rw-r--r-- | drivers/clk/ti/mux.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/drivers/clk/ti/mux.c b/drivers/clk/ti/mux.c index b7f9a4f068bf..0069e7cf3ebc 100644 --- a/drivers/clk/ti/mux.c +++ b/drivers/clk/ti/mux.c @@ -164,37 +164,6 @@ static struct clk *_register_mux(struct device *dev, const char *name, return clk; } -struct clk *ti_clk_register_mux(struct ti_clk *setup) -{ - struct ti_clk_mux *mux; - u32 flags; - u8 mux_flags = 0; - struct clk_omap_reg reg; - u32 mask; - - mux = setup->data; - flags = CLK_SET_RATE_NO_REPARENT; - - mask = mux->num_parents; - if (!(mux->flags & CLKF_INDEX_STARTS_AT_ONE)) - mask--; - - mask = (1 << fls(mask)) - 1; - reg.index = mux->module; - reg.offset = mux->reg; - reg.ptr = NULL; - - if (mux->flags & CLKF_INDEX_STARTS_AT_ONE) - mux_flags |= CLK_MUX_INDEX_ONE; - - if (mux->flags & CLKF_SET_RATE_PARENT) - flags |= CLK_SET_RATE_PARENT; - - return _register_mux(NULL, setup->name, mux->parents, mux->num_parents, - flags, ®, mux->bit_shift, mask, -EINVAL, - mux_flags, NULL); -} - /** * of_mux_clk_setup - Setup function for simple mux rate clock * @node: DT node for the clock |