diff options
-rw-r--r-- | drivers/dma/k3dma.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dma/k3dma.c b/drivers/dma/k3dma.c index bd8e5f1e826f..a1de14ab2c51 100644 --- a/drivers/dma/k3dma.c +++ b/drivers/dma/k3dma.c | |||
@@ -786,6 +786,7 @@ static int k3_dma_remove(struct platform_device *op) | |||
786 | return 0; | 786 | return 0; |
787 | } | 787 | } |
788 | 788 | ||
789 | #ifdef CONFIG_PM_SLEEP | ||
789 | static int k3_dma_suspend(struct device *dev) | 790 | static int k3_dma_suspend(struct device *dev) |
790 | { | 791 | { |
791 | struct k3_dma_dev *d = dev_get_drvdata(dev); | 792 | struct k3_dma_dev *d = dev_get_drvdata(dev); |
@@ -815,6 +816,7 @@ static int k3_dma_resume(struct device *dev) | |||
815 | k3_dma_enable_dma(d, true); | 816 | k3_dma_enable_dma(d, true); |
816 | return 0; | 817 | return 0; |
817 | } | 818 | } |
819 | #endif | ||
818 | 820 | ||
819 | static SIMPLE_DEV_PM_OPS(k3_dma_pmops, k3_dma_suspend, k3_dma_resume); | 821 | static SIMPLE_DEV_PM_OPS(k3_dma_pmops, k3_dma_suspend, k3_dma_resume); |
820 | 822 | ||