[PATCH 3/9] clk: meson: a1: Use clk_set_rate from meson_mux_set_rate
Sean Anderson <[email protected]>
| Newsgroups | gmane.comp.boot-loaders.u-boot |
|---|---|
| Message-ID | <20260817171623.1943847-4-sanderson__22690.4723256425$1786990679$gmane$org@brivo.com> |
This function is useful for other drivers, but it's tied to the a1's meson_mux_set_rate implementation. Convert it to use clk_set_rate so the drivers's set_rate implementation will be used (no matter what it is). Signed-off-by: Sean Anderson <[email protected]> --- drivers/clk/meson/a1.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/meson/a1.c b/drivers/clk/meson/a1.c index d0376663069..422cdf5f4d1 100644 --- a/drivers/clk/meson/a1.c +++ b/drivers/clk/meson/a1.c @@ -523,8 +523,6 @@ static ulong meson_composite_set_rate(struct clk *clk, ulong rate) return 0; } -static ulong meson_clk_set_rate(struct clk *clk, ulong rate); - static ulong meson_mux_set_rate(struct clk *clk, ulong rate) { int i; @@ -542,7 +540,7 @@ static ulong meson_mux_set_rate(struct clk *clk, ulong rate) .id = info->parents[i], }; - ret = meson_clk_set_rate(&parent, rate); + ret = clk_set_rate(&parent, rate); if (!ret) { SET_PARM_VALUE(priv, info->parm, i); break; -- 2.53.0