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_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>

-37
-22
drivers/clk/clk-divider.c
··· 409 409 } 410 410 EXPORT_SYMBOL_GPL(divider_round_rate_parent); 411 411 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 - 434 412 static int clk_divider_determine_rate(struct clk_hw *hw, 435 413 struct clk_rate_request *req) 436 414 {
-15
include/linux/clk-provider.h
··· 737 737 unsigned long rate, unsigned long *prate, 738 738 const struct clk_div_table *table, 739 739 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); 744 740 int divider_determine_rate(struct clk_hw *hw, struct clk_rate_request *req, 745 741 const struct clk_div_table *table, u8 width, 746 742 unsigned long flags); ··· 1434 1438 { 1435 1439 return divider_round_rate_parent(hw, clk_hw_get_parent(hw), 1436 1440 rate, prate, table, width, flags); 1437 - } 1438 - 1439 - static inline long divider_ro_round_rate(struct clk_hw *hw, unsigned long rate, 1440 - unsigned long *prate, 1441 - const struct clk_div_table *table, 1442 - u8 width, unsigned long flags, 1443 - unsigned int val) 1444 - { 1445 - return divider_ro_round_rate_parent(hw, clk_hw_get_parent(hw), 1446 - rate, prate, table, width, flags, 1447 - val); 1448 1441 } 1449 1442 1450 1443 /*