gpio: davinci: make davinci_gpio_dev_pm_ops static
authorMin-Hua Chen <minhuadotchen@gmail.com>
Fri, 9 Jun 2023 12:16:48 +0000 (20:16 +0800)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 13 Jun 2023 09:45:06 +0000 (11:45 +0200)
This patch fixes the following sprse warnings:

drivers/gpio/gpio-davinci.c:695:1: sparse: warning: symbol 'davinci_gpio_dev_pm_ops' was not declared. Should it be static?

No functional change intended.

Signed-off-by: Min-Hua Chen <minhuadotchen@gmail.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-davinci.c

index 3063e57..fff510d 100644 (file)
@@ -692,7 +692,7 @@ static int davinci_gpio_resume(struct device *dev)
        return 0;
 }
 
-DEFINE_SIMPLE_DEV_PM_OPS(davinci_gpio_dev_pm_ops, davinci_gpio_suspend,
+static DEFINE_SIMPLE_DEV_PM_OPS(davinci_gpio_dev_pm_ops, davinci_gpio_suspend,
                         davinci_gpio_resume);
 
 static const struct of_device_id davinci_gpio_ids[] = {