summaryrefslogtreecommitdiffstats
path: root/drivers/soc/versatile
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2020-07-15 04:47:01 +0200
committerLinus Walleij <linus.walleij@linaro.org>2020-08-20 08:57:05 +0200
commit9f467393e2973f124661426953811b4758181088 (patch)
treec0712bf9817c9dd89254343c3ac921ceed599431 /drivers/soc/versatile
parentLinux 5.9-rc1 (diff)
downloadlinux-9f467393e2973f124661426953811b4758181088.tar.xz
linux-9f467393e2973f124661426953811b4758181088.zip
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: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Link: https://lore.kernel.org/r/20200715024701.28356-1-yuehaibing@huawei.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/soc/versatile')
-rw-r--r--drivers/soc/versatile/soc-integrator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/versatile/soc-integrator.c b/drivers/soc/versatile/soc-integrator.c
index 7dcf77ccd31e..bab4ad87aa75 100644
--- a/drivers/soc/versatile/soc-integrator.c
+++ b/drivers/soc/versatile/soc-integrator.c
@@ -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;