summaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-11-15 11:36:28 +0000
committerStephen Boyd <sboyd@kernel.org>2018-11-29 23:12:35 -0800
commit25bf466bd2bd083f034d36b103a11831d0d0d7d6 (patch)
tree29893e3cd20469c0c1ba2d6b6ec481eaaf60847a /drivers/clk
parent651022382c7f8da46cb4872a545ee1da6d097d2a (diff)
downloadlinux-25bf466bd2bd083f034d36b103a11831d0d0d7d6.tar.bz2
clk: stm32mp1: drop pointless static qualifier in stm32_register_hw_clk()
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>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/clk-stm32mp1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-stm32mp1.c b/drivers/clk/clk-stm32mp1.c
index 4f48342bc280..6a31f7f434ce 100644
--- 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)
{
- static struct clk_hw **hws;
+ struct clk_hw **hws;
struct clk_hw *hw = ERR_PTR(-ENOENT);
hws = clk_data->hws;