Skip to content

Commit 4b5231d

Browse files
committed
clk: divider: remove divider_ro_round_rate_parent()
There are no remaining users of divider_ro_round_rate_parent(), so let's go ahead and remove it. Signed-off-by: Brian Masney <bmasney@redhat.com>
1 parent dc652a3 commit 4b5231d

2 files changed

Lines changed: 0 additions & 37 deletions

File tree

drivers/clk/clk-divider.c

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -409,28 +409,6 @@ long divider_round_rate_parent(struct clk_hw *hw, struct clk_hw *parent,
409409
}
410410
EXPORT_SYMBOL_GPL(divider_round_rate_parent);
411411

412-
long divider_ro_round_rate_parent(struct clk_hw *hw, struct clk_hw *parent,
413-
unsigned long rate, unsigned long *prate,
414-
const struct clk_div_table *table, u8 width,
415-
unsigned long flags, unsigned int val)
416-
{
417-
struct clk_rate_request req;
418-
int ret;
419-
420-
clk_hw_init_rate_request(hw, &req, rate);
421-
req.best_parent_rate = *prate;
422-
req.best_parent_hw = parent;
423-
424-
ret = divider_ro_determine_rate(hw, &req, table, width, flags, val);
425-
if (ret)
426-
return ret;
427-
428-
*prate = req.best_parent_rate;
429-
430-
return req.rate;
431-
}
432-
EXPORT_SYMBOL_GPL(divider_ro_round_rate_parent);
433-
434412
static int clk_divider_determine_rate(struct clk_hw *hw,
435413
struct clk_rate_request *req)
436414
{

include/linux/clk-provider.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -737,10 +737,6 @@ long divider_round_rate_parent(struct clk_hw *hw, struct clk_hw *parent,
737737
unsigned long rate, unsigned long *prate,
738738
const struct clk_div_table *table,
739739
u8 width, unsigned long flags);
740-
long divider_ro_round_rate_parent(struct clk_hw *hw, struct clk_hw *parent,
741-
unsigned long rate, unsigned long *prate,
742-
const struct clk_div_table *table, u8 width,
743-
unsigned long flags, unsigned int val);
744740
int divider_determine_rate(struct clk_hw *hw, struct clk_rate_request *req,
745741
const struct clk_div_table *table, u8 width,
746742
unsigned long flags);
@@ -1440,17 +1436,6 @@ static inline long divider_round_rate(struct clk_hw *hw, unsigned long rate,
14401436
rate, prate, table, width, flags);
14411437
}
14421438

1443-
static inline long divider_ro_round_rate(struct clk_hw *hw, unsigned long rate,
1444-
unsigned long *prate,
1445-
const struct clk_div_table *table,
1446-
u8 width, unsigned long flags,
1447-
unsigned int val)
1448-
{
1449-
return divider_ro_round_rate_parent(hw, clk_hw_get_parent(hw),
1450-
rate, prate, table, width, flags,
1451-
val);
1452-
}
1453-
14541439
/*
14551440
* FIXME clock api without lock protection
14561441
*/

0 commit comments

Comments
 (0)