Skip to content

Commit 6cfde88

Browse files
JuliaLawallbebarino
authored andcommitted
clk: drop unused function __clk_get_flags
The function __clk_get_flags has not been used since the April 2019 commit a348f05 ("ARM: omap2+: hwmod: drop CLK_IS_BASIC flag usage"). Other uses were removed in June 2015, eg by commit 98d8a60 ("clk: Convert __clk_get_flags() to clk_hw_get_flags()"), which shows how clk_hw_get_flags can easily be used instead. Signed-off-by: Julia Lawall <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent b3a9e3b commit 6cfde88

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

drivers/clk/clk.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -500,12 +500,6 @@ static unsigned long clk_core_get_accuracy_no_lock(struct clk_core *core)
500500
return core->accuracy;
501501
}
502502

503-
unsigned long __clk_get_flags(struct clk *clk)
504-
{
505-
return !clk ? 0 : clk->core->flags;
506-
}
507-
EXPORT_SYMBOL_GPL(__clk_get_flags);
508-
509503
unsigned long clk_hw_get_flags(const struct clk_hw *hw)
510504
{
511505
return hw->core->flags;

include/linux/clk-provider.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,6 @@ int clk_hw_get_parent_index(struct clk_hw *hw);
10961096
int clk_hw_set_parent(struct clk_hw *hw, struct clk_hw *new_parent);
10971097
unsigned int __clk_get_enable_count(struct clk *clk);
10981098
unsigned long clk_hw_get_rate(const struct clk_hw *hw);
1099-
unsigned long __clk_get_flags(struct clk *clk);
11001099
unsigned long clk_hw_get_flags(const struct clk_hw *hw);
11011100
#define clk_hw_can_set_rate_parent(hw) \
11021101
(clk_hw_get_flags((hw)) & CLK_SET_RATE_PARENT)

0 commit comments

Comments
 (0)