projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6510223
)
clk: stm32mp1: drop pointless static qualifier in stm32_register_hw_clk()
author
YueHaibing
<yuehaibing@huawei.com>
Thu, 15 Nov 2018 11:36:28 +0000
(11:36 +0000)
committer
Stephen Boyd
<sboyd@kernel.org>
Fri, 30 Nov 2018 07:12:35 +0000
(23:12 -0800)
There is no need to have the 'struct clk_hw **hws' variable static
since new value always be assigned before use it.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-stm32mp1.c
patch
|
blob
|
history
diff --git
a/drivers/clk/clk-stm32mp1.c
b/drivers/clk/clk-stm32mp1.c
index 4f48342bc2802bd7a9c9402594e035a1c97ad91a..6a31f7f434ce47739bdeb548aa6154a013dfe1ae 100644
(file)
--- a/
drivers/clk/clk-stm32mp1.c
+++ b/
drivers/clk/clk-stm32mp1.c
@@
-2015,7
+2015,7
@@
static int stm32_register_hw_clk(struct device *dev,
void __iomem *base, spinlock_t *lock,
const struct clock_config *cfg)
{
- st
atic st
ruct clk_hw **hws;
+ struct clk_hw **hws;
struct clk_hw *hw = ERR_PTR(-ENOENT);
hws = clk_data->hws;