dmaengine: at_xdmac: fix compilation warning
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Mon, 25 Oct 2021 07:40:02 +0000 (10:40 +0300)
committerVinod Koul <vkoul@kernel.org>
Thu, 28 Oct 2021 17:22:15 +0000 (22:52 +0530)
Fixed "unused variable 'atmel_xdmac_dev_pm_ops'" compilation warning
when CONFIG_PM is not defined.

Fixes: 8e0c7e486014 ("dmaengine: at_xdmac: use pm_ptr()")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Link: https://lore.kernel.org/r/20211025074002.722504-1-claudiu.beznea@microchip.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/at_xdmac.c

index 7fb19bd18ac32fdea882963851a715d45b9c7d57..275a76f188ae77e638b7e061f64e4b170a9a209f 100644 (file)
@@ -2207,7 +2207,7 @@ static int at_xdmac_remove(struct platform_device *pdev)
        return 0;
 }
 
-static const struct dev_pm_ops atmel_xdmac_dev_pm_ops = {
+static const struct dev_pm_ops __maybe_unused atmel_xdmac_dev_pm_ops = {
        .prepare        = atmel_xdmac_prepare,
        SET_LATE_SYSTEM_SLEEP_PM_OPS(atmel_xdmac_suspend, atmel_xdmac_resume)
 };