summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Masney <bmasney@redhat.com>2026-05-05 20:48:59 -0400
committerBrian Masney <bmasney@redhat.com>2026-06-29 17:52:18 -0400
commit7ea6726c91b51a196d09fafd40b801103c6fa555 (patch)
tree13fdba9002871e1dc642825de3716bff838567c3
parent862e0773f130d21a65c991f493b01f4ec040e821 (diff)
downloadlinux-stable-7ea6726c91b51a196d09fafd40b801103c6fa555.tar.gz
linux-stable-7ea6726c91b51a196d09fafd40b801103c6fa555.zip
clk: hisilicon: hi3660-stub: use clk_determine_rate_noop()
Drop the driver-specific empty determine_rate() function and use the new shared clk_determine_rate_noop() helper. Signed-off-by: Brian Masney <bmasney@redhat.com>
-rw-r--r--drivers/clk/hisilicon/clk-hi3660-stub.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/clk/hisilicon/clk-hi3660-stub.c b/drivers/clk/hisilicon/clk-hi3660-stub.c
index 7c8b00ee6019..0cb1c0538eae 100644
--- a/drivers/clk/hisilicon/clk-hi3660-stub.c
+++ b/drivers/clk/hisilicon/clk-hi3660-stub.c
@@ -67,16 +67,6 @@ static unsigned long hi3660_stub_clk_recalc_rate(struct clk_hw *hw,
return stub_clk->rate;
}
-static int hi3660_stub_clk_determine_rate(struct clk_hw *hw,
- struct clk_rate_request *req)
-{
- /*
- * LPM3 handles rate rounding so just return whatever
- * rate is requested.
- */
- return 0;
-}
-
static int hi3660_stub_clk_set_rate(struct clk_hw *hw, unsigned long rate,
unsigned long parent_rate)
{
@@ -97,7 +87,7 @@ static int hi3660_stub_clk_set_rate(struct clk_hw *hw, unsigned long rate,
static const struct clk_ops hi3660_stub_clk_ops = {
.recalc_rate = hi3660_stub_clk_recalc_rate,
- .determine_rate = hi3660_stub_clk_determine_rate,
+ .determine_rate = clk_determine_rate_noop,
.set_rate = hi3660_stub_clk_set_rate,
};