Commit 25bf466b authored by YueHaibing's avatar YueHaibing Committed by Stephen Boyd

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: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 65102238
...@@ -2015,7 +2015,7 @@ static int stm32_register_hw_clk(struct device *dev, ...@@ -2015,7 +2015,7 @@ static int stm32_register_hw_clk(struct device *dev,
void __iomem *base, spinlock_t *lock, void __iomem *base, spinlock_t *lock,
const struct clock_config *cfg) const struct clock_config *cfg)
{ {
static struct clk_hw **hws; struct clk_hw **hws;
struct clk_hw *hw = ERR_PTR(-ENOENT); struct clk_hw *hw = ERR_PTR(-ENOENT);
hws = clk_data->hws; hws = clk_data->hws;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment