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>
This commit is contained in:
parent
2d3b6db122
commit
1e9aa2a816
|
@ -577,7 +577,7 @@ static int pxa_irq_domain_map(struct irq_domain *d, unsigned int irq,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct irq_domain_ops pxa_irq_domain_ops = {
|
static const struct irq_domain_ops pxa_irq_domain_ops = {
|
||||||
.map = pxa_irq_domain_map,
|
.map = pxa_irq_domain_map,
|
||||||
.xlate = irq_domain_xlate_twocell,
|
.xlate = irq_domain_xlate_twocell,
|
||||||
};
|
};
|
||||||
|
@ -812,7 +812,7 @@ static void pxa_gpio_resume(void)
|
||||||
#define pxa_gpio_resume NULL
|
#define pxa_gpio_resume NULL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct syscore_ops pxa_gpio_syscore_ops = {
|
static struct syscore_ops pxa_gpio_syscore_ops = {
|
||||||
.suspend = pxa_gpio_suspend,
|
.suspend = pxa_gpio_suspend,
|
||||||
.resume = pxa_gpio_resume,
|
.resume = pxa_gpio_resume,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue