aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/k3dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dma/k3dma.c')
-rw-r--r--drivers/dma/k3dma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/k3dma.c b/drivers/dma/k3dma.c
index a1f911aaf220..a1de14ab2c51 100644
--- a/drivers/dma/k3dma.c
+++ b/drivers/dma/k3dma.c
@@ -722,7 +722,6 @@ static int k3_dma_probe(struct platform_device *op)
722 d->slave.device_issue_pending = k3_dma_issue_pending; 722 d->slave.device_issue_pending = k3_dma_issue_pending;
723 d->slave.device_control = k3_dma_control; 723 d->slave.device_control = k3_dma_control;
724 d->slave.copy_align = DMA_ALIGN; 724 d->slave.copy_align = DMA_ALIGN;
725 d->slave.chancnt = d->dma_requests;
726 725
727 /* init virtual channel */ 726 /* init virtual channel */
728 d->chans = devm_kzalloc(&op->dev, 727 d->chans = devm_kzalloc(&op->dev,
@@ -787,6 +786,7 @@ static int k3_dma_remove(struct platform_device *op)
787 return 0; 786 return 0;
788} 787}
789 788
789#ifdef CONFIG_PM_SLEEP
790static int k3_dma_suspend(struct device *dev) 790static int k3_dma_suspend(struct device *dev)
791{ 791{
792 struct k3_dma_dev *d = dev_get_drvdata(dev); 792 struct k3_dma_dev *d = dev_get_drvdata(dev);
@@ -816,13 +816,13 @@ static int k3_dma_resume(struct device *dev)
816 k3_dma_enable_dma(d, true); 816 k3_dma_enable_dma(d, true);
817 return 0; 817 return 0;
818} 818}
819#endif
819 820
820static SIMPLE_DEV_PM_OPS(k3_dma_pmops, k3_dma_suspend, k3_dma_resume); 821static SIMPLE_DEV_PM_OPS(k3_dma_pmops, k3_dma_suspend, k3_dma_resume);
821 822
822static struct platform_driver k3_pdma_driver = { 823static struct platform_driver k3_pdma_driver = {
823 .driver = { 824 .driver = {
824 .name = DRIVER_NAME, 825 .name = DRIVER_NAME,
825 .owner = THIS_MODULE,
826 .pm = &k3_dma_pmops, 826 .pm = &k3_dma_pmops,
827 .of_match_table = k3_pdma_dt_ids, 827 .of_match_table = k3_pdma_dt_ids,
828 }, 828 },