[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20260108-clk-divider-round-rate-v1-27-535a3ed73bf3@redhat.com>
Date: Thu, 08 Jan 2026 16:16:45 -0500
From: Brian Masney <bmasney@...hat.com>
To: Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>
Cc: linux-clk@...r.kernel.org, linux-kernel@...r.kernel.org,
Brian Masney <bmasney@...hat.com>
Subject: [PATCH 27/27] clk: divider: remove divider_round_rate() and
divider_round_rate_parent()
There are no remaining users of divider_round_rate() and
divider_round_rate_parent(), so let's go ahead and remove them.
Signed-off-by: Brian Masney <bmasney@...hat.com>
---
drivers/clk/clk-divider.c | 22 ----------------------
include/linux/clk-provider.h | 13 -------------
2 files changed, 35 deletions(-)
diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c
index 7e414017afa12c3838634ec030f960d8aa028b99..8439784ba08572dcd970d5d4ce3857c6c145763e 100644
--- a/drivers/clk/clk-divider.c
+++ b/drivers/clk/clk-divider.c
@@ -387,28 +387,6 @@ int divider_ro_determine_rate(struct clk_hw *hw, struct clk_rate_request *req,
}
EXPORT_SYMBOL_GPL(divider_ro_determine_rate);
-long divider_round_rate_parent(struct clk_hw *hw, struct clk_hw *parent,
- unsigned long rate, unsigned long *prate,
- const struct clk_div_table *table,
- u8 width, unsigned long flags)
-{
- struct clk_rate_request req;
- int ret;
-
- clk_hw_init_rate_request(hw, &req, rate);
- req.best_parent_rate = *prate;
- req.best_parent_hw = parent;
-
- ret = divider_determine_rate(hw, &req, table, width, flags);
- if (ret)
- return ret;
-
- *prate = req.best_parent_rate;
-
- return req.rate;
-}
-EXPORT_SYMBOL_GPL(divider_round_rate_parent);
-
static int clk_divider_determine_rate(struct clk_hw *hw,
struct clk_rate_request *req)
{
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h
index 000f4063e0d10e6772f6d2af7feb0de7741e7255..85f456be5f12ec46e86e5819643fed3fe3790fcb 100644
--- a/include/linux/clk-provider.h
+++ b/include/linux/clk-provider.h
@@ -739,10 +739,6 @@ extern const struct clk_ops clk_divider_ro_ops;
unsigned long divider_recalc_rate(struct clk_hw *hw, unsigned long parent_rate,
unsigned int val, const struct clk_div_table *table,
unsigned long flags, unsigned long width);
-long divider_round_rate_parent(struct clk_hw *hw, struct clk_hw *parent,
- unsigned long rate, unsigned long *prate,
- const struct clk_div_table *table,
- u8 width, unsigned long flags);
int divider_determine_rate(struct clk_hw *hw, struct clk_rate_request *req,
const struct clk_div_table *table, u8 width,
unsigned long flags);
@@ -1433,15 +1429,6 @@ static inline void __clk_hw_set_clk(struct clk_hw *dst, struct clk_hw *src)
dst->core = src->core;
}
-static inline long divider_round_rate(struct clk_hw *hw, unsigned long rate,
- unsigned long *prate,
- const struct clk_div_table *table,
- u8 width, unsigned long flags)
-{
- return divider_round_rate_parent(hw, clk_hw_get_parent(hw),
- rate, prate, table, width, flags);
-}
-
/*
* FIXME clock api without lock protection
*/
--
2.52.0
Powered by blists - more mailing lists