Skip to content

Commit bbbbd24

Browse files
bjdooks-ctmmind
authored andcommitted
clk: rockchip: make clk_half_divider_ops static
The clk_half_divider_ops is not used outside or declared outside of drivers/clk/rockchip/clk-half-divider.c so make it static to avoid the following warning: drivers/clk/rockchip/clk-half-divider.c:142:22: warning: symbol 'clk_half_divider_ops' was not declared. Should it be static? Signed-off-by: Ben Dooks <[email protected]> Reviewed-by: Stephen Boyd <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Stuebner <[email protected]>
1 parent 54ecb8f commit bbbbd24

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/clk/rockchip/clk-half-divider.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,11 @@ static int clk_half_divider_set_rate(struct clk_hw *hw, unsigned long rate,
139139
return 0;
140140
}
141141

142-
const struct clk_ops clk_half_divider_ops = {
142+
static const struct clk_ops clk_half_divider_ops = {
143143
.recalc_rate = clk_half_divider_recalc_rate,
144144
.round_rate = clk_half_divider_round_rate,
145145
.set_rate = clk_half_divider_set_rate,
146146
};
147-
EXPORT_SYMBOL_GPL(clk_half_divider_ops);
148147

149148
/**
150149
* Register a clock branch.

0 commit comments

Comments
 (0)