Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: at_xdmac: fix compilation warning

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>

authored by

Claudiu Beznea and committed by
Vinod Koul
d191a9ab 2f23355e

+1 -1
+1 -1
drivers/dma/at_xdmac.c
··· 2207 2207 return 0; 2208 2208 } 2209 2209 2210 - static const struct dev_pm_ops atmel_xdmac_dev_pm_ops = { 2210 + static const struct dev_pm_ops __maybe_unused atmel_xdmac_dev_pm_ops = { 2211 2211 .prepare = atmel_xdmac_prepare, 2212 2212 SET_LATE_SYSTEM_SLEEP_PM_OPS(atmel_xdmac_suspend, atmel_xdmac_resume) 2213 2213 };