Skip to content

Commit d75d521

Browse files
pelwellpopcornmix
authored andcommitted
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 <[email protected]>
1 parent 15247b2 commit d75d521

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/dma/bcm2835-dma.c

+2
Original file line numberDiff line numberDiff line change
@@ -1270,6 +1270,8 @@ static int bcm2835_dma_suspend_late(struct device *dev)
12701270

12711271
return 0;
12721272
}
1273+
#else
1274+
static int bcm2835_dma_suspend_late(struct device *dev) {return 0;}
12731275
#endif
12741276

12751277
static const struct dev_pm_ops bcm2835_dma_pm_ops = {

0 commit comments

Comments
 (0)