projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e26a203
)
clk: hisilicon: Mark phase_ops static
author
Stephen Boyd
<sboyd@kernel.org>
Wed, 14 Mar 2018 21:34:16 +0000
(14:34 -0700)
committer
Stephen Boyd
<sboyd@kernel.org>
Wed, 14 Mar 2018 21:34:16 +0000
(14:34 -0700)
Sparse rightfully complains:
drivers/clk/hisilicon/clk-hisi-phase.c:88:22: warning: symbol 'clk_phase_ops' was not declared. Should it be static?
drivers/clk/hisilicon/clk-hisi-phase.c:88:22: warning: symbol 'clk_phase_ops' was not declared. Should it be static?
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/hisilicon/clk-hisi-phase.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/clk/hisilicon/clk-hisi-phase.c
b/drivers/clk/hisilicon/clk-hisi-phase.c
index 42ce157ff82836c66c4fba4271f10511093cef73..5bce9297b78b16a1aa6002a7edab8711b61ba945 100644
(file)
--- a/
drivers/clk/hisilicon/clk-hisi-phase.c
+++ b/
drivers/clk/hisilicon/clk-hisi-phase.c
@@
-85,7
+85,7
@@
static int hisi_clk_set_phase(struct clk_hw *hw, int degrees)
return 0;
}
-const struct clk_ops clk_phase_ops = {
+
static
const struct clk_ops clk_phase_ops = {
.get_phase = hisi_clk_get_phase,
.set_phase = hisi_clk_set_phase,
};