OSDN Git Service

pinctrl: sirf: drop pointless static qualifier in sirfsoc_gpio_probe
authorYueHaibing <yuehaibing@huawei.com>
Wed, 23 Jan 2019 08:41:40 +0000 (16:41 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 28 Jan 2019 13:42:55 +0000 (14:42 +0100)
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>
drivers/pinctrl/sirf/pinctrl-sirf.c

index 2e42d73..2b3bd1a 100644 (file)
@@ -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;