Skip to content

Commit d191a9a

Browse files
claudiubezneavinodkoul
authored andcommitted
dmaengine: at_xdmac: fix compilation warning
Fixed "unused variable 'atmel_xdmac_dev_pm_ops'" compilation warning when CONFIG_PM is not defined. Fixes: 8e0c7e4 ("dmaengine: at_xdmac: use pm_ptr()") Reported-by: kernel test robot <[email protected]> Signed-off-by: Claudiu Beznea <[email protected]> Reviewed-by: Tudor Ambarus <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 2f23355 commit d191a9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma/at_xdmac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2207,7 +2207,7 @@ static int at_xdmac_remove(struct platform_device *pdev)
22072207
return 0;
22082208
}
22092209

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 = {
22112211
.prepare = atmel_xdmac_prepare,
22122212
SET_LATE_SYSTEM_SLEEP_PM_OPS(atmel_xdmac_suspend, atmel_xdmac_resume)
22132213
};

0 commit comments

Comments
 (0)