summaryrefslogtreecommitdiffstats
path: root/drivers/soc/versatile
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2020-07-15 10:47:01 +0800
committerLinus Walleij <linus.walleij@linaro.org>2020-08-20 08:57:05 +0200
commit9f467393e2973f124661426953811b4758181088 (patch)
treec0712bf9817c9dd89254343c3ac921ceed599431 /drivers/soc/versatile
parent9123e3a74ec7b934a4a099e98af6a61c2f80bbf5 (diff)
downloadlinux-9f467393e2973f124661426953811b4758181088.tar.bz2
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;