Skip to content

Commit 9503293

Browse files
lategoodbyevinodkoul
authored andcommitted
dmaengine: bcm2835-dma: fix warning when CONFIG_PM=n
The old SET_LATE_SYSTEM_SLEEP_PM_OPS macro cause a build warning when CONFIG_PM is disabled: warning: 'bcm2835_dma_suspend_late' defined but not used [-Wunused-function] Change this to the modern replacement. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202501071533.yrFb156H-lkp@intel.com/ Signed-off-by: Stefan Wahren <wahrenst@gmx.net> Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com> Link: https://lore.kernel.org/r/20250222095028.48818-1-wahrenst@gmx.net Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 3443610 commit 9503293

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma/bcm2835-dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ static int bcm2835_dma_suspend_late(struct device *dev)
893893
}
894894

895895
static const struct dev_pm_ops bcm2835_dma_pm_ops = {
896-
SET_LATE_SYSTEM_SLEEP_PM_OPS(bcm2835_dma_suspend_late, NULL)
896+
LATE_SYSTEM_SLEEP_PM_OPS(bcm2835_dma_suspend_late, NULL)
897897
};
898898

899899
static int bcm2835_dma_probe(struct platform_device *pdev)

0 commit comments

Comments
 (0)