diff options
| author | YueHaibing <yuehaibing@huawei.com> | 2019-04-16 10:56:12 -0400 |
|---|---|---|
| committer | Linus Walleij <linus.walleij@linaro.org> | 2019-04-23 07:02:15 -0400 |
| commit | 1e9aa2a8164fa5b443b10962045eef01d7eeb9f7 (patch) | |
| tree | ae2b5bf3f72d3caaf3fd8b6d14ce6f53893b8c94 | |
| parent | 2d3b6db122ce9aa0a0460e618516e6bfa8eef329 (diff) | |
gpio: pxa: Make two symbols static
Fix sparse warnings:
drivers/gpio/gpio-pxa.c:580:29: warning:
symbol 'pxa_irq_domain_ops' was not declared. Should it be static?
drivers/gpio/gpio-pxa.c:819:20: warning:
symbol 'pxa_gpio_syscore_ops' was not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
| -rw-r--r-- | drivers/gpio/gpio-pxa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-pxa.c b/drivers/gpio/gpio-pxa.c index dd479607b66a..26f77fdb217e 100644 --- a/drivers/gpio/gpio-pxa.c +++ b/drivers/gpio/gpio-pxa.c | |||
| @@ -577,7 +577,7 @@ static int pxa_irq_domain_map(struct irq_domain *d, unsigned int irq, | |||
| 577 | return 0; | 577 | return 0; |
| 578 | } | 578 | } |
| 579 | 579 | ||
| 580 | const struct irq_domain_ops pxa_irq_domain_ops = { | 580 | static const struct irq_domain_ops pxa_irq_domain_ops = { |
| 581 | .map = pxa_irq_domain_map, | 581 | .map = pxa_irq_domain_map, |
| 582 | .xlate = irq_domain_xlate_twocell, | 582 | .xlate = irq_domain_xlate_twocell, |
| 583 | }; | 583 | }; |
| @@ -812,7 +812,7 @@ static void pxa_gpio_resume(void) | |||
| 812 | #define pxa_gpio_resume NULL | 812 | #define pxa_gpio_resume NULL |
| 813 | #endif | 813 | #endif |
| 814 | 814 | ||
| 815 | struct syscore_ops pxa_gpio_syscore_ops = { | 815 | static struct syscore_ops pxa_gpio_syscore_ops = { |
| 816 | .suspend = pxa_gpio_suspend, | 816 | .suspend = pxa_gpio_suspend, |
| 817 | .resume = pxa_gpio_resume, | 817 | .resume = pxa_gpio_resume, |
| 818 | }; | 818 | }; |
