summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2023-01-27 13:28:26 +0100
committerLinus Walleij <linus.walleij@linaro.org>2023-01-27 13:28:26 +0100
commita08cbeb1d10f2f091d4169a0ca0f4b719a53446a (patch)
tree5205586053177df6e453cf658bc24aa7656af60c /drivers
parentb2ea28b885a44a5bedc73fc2ba7adbe648eb18e2 (diff)
downloadlinux-a08cbeb1d10f2f091d4169a0ca0f4b719a53446a.tar.gz
linux-a08cbeb1d10f2f091d4169a0ca0f4b719a53446a.tar.bz2
linux-a08cbeb1d10f2f091d4169a0ca0f4b719a53446a.zip
pinctrl: at91: Tag suspend/resume __maybe_unused
Tag the suspend/resume callbacks as __maybe_unused to silence complaints from the build robots. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pinctrl/pinctrl-at91.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c
index cf2423855a80..2b91816ca286 100644
--- a/drivers/pinctrl/pinctrl-at91.c
+++ b/drivers/pinctrl/pinctrl-at91.c
@@ -1649,7 +1649,7 @@ static int gpio_irq_set_wake(struct irq_data *d, unsigned state)
return 0;
}
-static int at91_gpio_suspend(struct device *dev)
+static int __maybe_unused at91_gpio_suspend(struct device *dev)
{
struct at91_gpio_chip *at91_chip = dev_get_drvdata(dev);
void __iomem *pio = at91_chip->regbase;
@@ -1667,7 +1667,7 @@ static int at91_gpio_suspend(struct device *dev)
return 0;
}
-static int at91_gpio_resume(struct device *dev)
+static int __maybe_unused at91_gpio_resume(struct device *dev)
{
struct at91_gpio_chip *at91_chip = dev_get_drvdata(dev);
void __iomem *pio = at91_chip->regbase;