projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff54d82
)
pinctrl: sirf: drop pointless static qualifier in sirfsoc_gpio_probe
author
YueHaibing
<yuehaibing@huawei.com>
Wed, 23 Jan 2019 08:41:40 +0000
(16:41 +0800)
committer
Linus 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
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/sirf/pinctrl-sirf.c
b/drivers/pinctrl/sirf/pinctrl-sirf.c
index
2e42d73
..
2b3bd1a
100644
(file)
--- 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;
- st
atic st
ruct sirfsoc_gpio_chip *sgpio;
+ struct sirfsoc_gpio_chip *sgpio;
struct sirfsoc_gpio_bank *bank;
void __iomem *regs;
struct platform_device *pdev;