mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
dmaengine: bcm2835: Fix a build warning
bcm2835_dma_suspend_late is only used if CONFIG_PM_SLEEP is defined, so make it's presence similarly conditional to avoid a build warning (and hence error). Signed-off-by: Phil Elwell <phil@raspberrypi.com>
This commit is contained in:
@@ -1250,6 +1250,7 @@ static struct dma_chan *bcm2835_dma_xlate(struct of_phandle_args *spec,
|
|||||||
return chan;
|
return chan;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_PM_SLEEP
|
||||||
static int bcm2835_dma_suspend_late(struct device *dev)
|
static int bcm2835_dma_suspend_late(struct device *dev)
|
||||||
{
|
{
|
||||||
struct bcm2835_dmadev *od = dev_get_drvdata(dev);
|
struct bcm2835_dmadev *od = dev_get_drvdata(dev);
|
||||||
@@ -1266,6 +1267,9 @@ static int bcm2835_dma_suspend_late(struct device *dev)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
static int bcm2835_dma_suspend_late(struct device *dev) {return 0;}
|
||||||
|
#endif
|
||||||
|
|
||||||
static const struct dev_pm_ops bcm2835_dma_pm_ops = {
|
static const struct dev_pm_ops bcm2835_dma_pm_ops = {
|
||||||
LATE_SYSTEM_SLEEP_PM_OPS(bcm2835_dma_suspend_late, NULL)
|
LATE_SYSTEM_SLEEP_PM_OPS(bcm2835_dma_suspend_late, NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user