Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

-35
-22
drivers/clk/clk-divider.c
··· 387 387 } 388 388 EXPORT_SYMBOL_GPL(divider_ro_determine_rate); 389 389 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 - 412 390 static int clk_divider_determine_rate(struct clk_hw *hw, 413 391 struct clk_rate_request *req) 414 392 {
-13
include/linux/clk-provider.h
··· 733 733 unsigned long divider_recalc_rate(struct clk_hw *hw, unsigned long parent_rate, 734 734 unsigned int val, const struct clk_div_table *table, 735 735 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); 740 736 int divider_determine_rate(struct clk_hw *hw, struct clk_rate_request *req, 741 737 const struct clk_div_table *table, u8 width, 742 738 unsigned long flags); ··· 1421 1425 { 1422 1426 dst->clk = src->clk; 1423 1427 dst->core = src->core; 1424 - } 1425 - 1426 - static inline long divider_round_rate(struct clk_hw *hw, unsigned long rate, 1427 - unsigned long *prate, 1428 - const struct clk_div_table *table, 1429 - u8 width, unsigned long flags) 1430 - { 1431 - return divider_round_rate_parent(hw, clk_hw_get_parent(hw), 1432 - rate, prate, table, width, flags); 1433 1428 } 1434 1429 1435 1430 /*