summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/sirf
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-01-23 16:41:40 +0800
committerLinus Walleij <linus.walleij@linaro.org>2019-01-28 14:42:55 +0100
commit4f41e66cf555f74b5aa490684e72b4a6aa34988d (patch)
tree6e0427c960c624d334ff35b425f3be2b7fec1df0 /drivers/pinctrl/sirf
parentff54d82b7716b9bbc8694afd63ebcdb465598cdc (diff)
downloadblackbird-op-linux-4f41e66cf555f74b5aa490684e72b4a6aa34988d.tar.gz
blackbird-op-linux-4f41e66cf555f74b5aa490684e72b4a6aa34988d.zip
pinctrl: sirf: drop pointless static qualifier in sirfsoc_gpio_probe
There is no need to have the 'sgpio' variable static since new value always be assigned before use it. Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/sirf')
-rw-r--r--drivers/pinctrl/sirf/pinctrl-sirf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/sirf/pinctrl-sirf.c b/drivers/pinctrl/sirf/pinctrl-sirf.c
index 2e42d738b589..2b3bd1a41f21 100644
--- a/drivers/pinctrl/sirf/pinctrl-sirf.c
+++ b/drivers/pinctrl/sirf/pinctrl-sirf.c
@@ -782,7 +782,7 @@ static void sirfsoc_gpio_set_pulldown(struct sirfsoc_gpio_chip *sgpio,
static int sirfsoc_gpio_probe(struct device_node *np)
{
int i, err = 0;
- static struct sirfsoc_gpio_chip *sgpio;
+ struct sirfsoc_gpio_chip *sgpio;
struct sirfsoc_gpio_bank *bank;
void __iomem *regs;
struct platform_device *pdev;
OpenPOWER on IntegriCloud