diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-01-23 09:41:40 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2019-01-28 14:42:55 +0100 |
commit | 4f41e66cf555f74b5aa490684e72b4a6aa34988d (patch) | |
tree | 6e0427c960c624d334ff35b425f3be2b7fec1df0 /drivers/pinctrl | |
parent | pinctrl: ti-iodelay: Fix platform_no_drv_owner.cocci warnings (diff) | |
download | linux-4f41e66cf555f74b5aa490684e72b4a6aa34988d.tar.xz 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')
-rw-r--r-- | drivers/pinctrl/sirf/pinctrl-sirf.c | 2 |
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; |