Skip to content

Commit d485175

Browse files
committed
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@redhat.com>
1 parent 4b5231d commit d485175

2 files changed

Lines changed: 0 additions & 35 deletions

File tree

drivers/clk/clk-divider.c

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -387,28 +387,6 @@ int divider_ro_determine_rate(struct clk_hw *hw, struct clk_rate_request *req,
387387
}
388388
EXPORT_SYMBOL_GPL(divider_ro_determine_rate);
389389

390-
long divider_round_rate_parent(struct clk_hw *hw, struct clk_hw *parent,
391-
unsigned long rate, unsigned long *prate,
392-
const struct clk_div_table *table,
393-
u8 width, unsigned long flags)
394-
{
395-
struct clk_rate_request req;
396-
int ret;
397-
398-
clk_hw_init_rate_request(hw, &req, rate);
399-
req.best_parent_rate = *prate;
400-
req.best_parent_hw = parent;
401-
402-
ret = divider_determine_rate(hw, &req, table, width, flags);
403-
if (ret)
404-
return ret;
405-
406-
*prate = req.best_parent_rate;
407-
408-
return req.rate;
409-
}
410-
EXPORT_SYMBOL_GPL(divider_round_rate_parent);
411-
412390
static int clk_divider_determine_rate(struct clk_hw *hw,
413391
struct clk_rate_request *req)
414392
{

include/linux/clk-provider.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -733,10 +733,6 @@ extern const struct clk_ops clk_divider_ro_ops;
733733
unsigned long divider_recalc_rate(struct clk_hw *hw, unsigned long parent_rate,
734734
unsigned int val, const struct clk_div_table *table,
735735
unsigned long flags, unsigned long width);
736-
long divider_round_rate_parent(struct clk_hw *hw, struct clk_hw *parent,
737-
unsigned long rate, unsigned long *prate,
738-
const struct clk_div_table *table,
739-
u8 width, unsigned long flags);
740736
int divider_determine_rate(struct clk_hw *hw, struct clk_rate_request *req,
741737
const struct clk_div_table *table, u8 width,
742738
unsigned long flags);
@@ -1427,15 +1423,6 @@ static inline void __clk_hw_set_clk(struct clk_hw *dst, struct clk_hw *src)
14271423
dst->core = src->core;
14281424
}
14291425

1430-
static inline long divider_round_rate(struct clk_hw *hw, unsigned long rate,
1431-
unsigned long *prate,
1432-
const struct clk_div_table *table,
1433-
u8 width, unsigned long flags)
1434-
{
1435-
return divider_round_rate_parent(hw, clk_hw_get_parent(hw),
1436-
rate, prate, table, width, flags);
1437-
}
1438-
14391426
/*
14401427
* FIXME clock api without lock protection
14411428
*/

0 commit comments

Comments
 (0)