]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dmaengine: bcm2835-dma: fix warning when CONFIG_PM=n
authorStefan Wahren <wahrenst@gmx.net>
Sat, 22 Feb 2025 09:50:28 +0000 (10:50 +0100)
committerVinod Koul <vkoul@kernel.org>
Thu, 27 Feb 2025 07:07:14 +0000 (12:37 +0530)
commit95032938c7c9b2e5ebb69f0ee10ebe340fa3af53
treeda56f1e71e4c6195eb87788b4aa457d7160b9564
parent34436106af3d00b9cf94dbf7200b8162937f9943
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>
drivers/dma/bcm2835-dma.c