Commit 9f467393 authored by YueHaibing's avatar YueHaibing Committed by Linus Walleij
Browse files

soc: integrator: Drop pointless static qualifier in integrator_soc_init()



There is no need to have the 'struct regmap *syscon_regmap' variable
static since new value always be assigned before use it.

Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20200715024701.28356-1-yuehaibing@huawei.com


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 9123e3a7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ ATTRIBUTE_GROUPS(integrator);

static int __init integrator_soc_init(void)
{
	static struct regmap *syscon_regmap;
	struct regmap *syscon_regmap;
	struct soc_device *soc_dev;
	struct soc_device_attribute *soc_dev_attr;
	struct device_node *np;