mfd: atmel-flexcom: Fix compilation warning
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Tue, 7 Dec 2021 11:15:15 +0000 (13:15 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 23 Mar 2022 14:51:38 +0000 (14:51 +0000)
Fix "unused variable 'atmel_flexcom_pm_ops' [-Wunused-const-variable]"
compilation warning by using __maybe_unused on PM ops.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20211207111515.814653-1-claudiu.beznea@microchip.com
drivers/mfd/atmel-flexcom.c

index 559eb4d..33caa4f 100644 (file)
@@ -105,7 +105,7 @@ static int __maybe_unused atmel_flexcom_resume_noirq(struct device *dev)
        return 0;
 }
 
-static const struct dev_pm_ops atmel_flexcom_pm_ops = {
+static const struct dev_pm_ops __maybe_unused atmel_flexcom_pm_ops = {
        .resume_noirq = atmel_flexcom_resume_noirq,
 };