]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
clk: stm32mp1: drop pointless static qualifier in stm32_register_hw_clk()
authorYueHaibing <yuehaibing@huawei.com>
Thu, 15 Nov 2018 11:36:28 +0000 (11:36 +0000)
committerStephen 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

index 4f48342bc2802bd7a9c9402594e035a1c97ad91a..6a31f7f434ce47739bdeb548aa6154a013dfe1ae 100644 (file)
@@ -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;