Skip to content

Commit a2d0945

Browse files
basuamdvinodkoul
authored andcommitted
dmaengine: ae4dma: Register debugfs using ptdma_debugfs_setup
Use the ptdma_debugfs_setup function to register debugfs for AE4DMA DMA engine. Reviewed-by: Raju Rangoju <[email protected]> Signed-off-by: Basavaraj Natikar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent b10b278 commit a2d0945

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

drivers/dma/amd/ae4dma/ae4dma-dev.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ int ae4_core_init(struct ae4_device *ae4)
150150
ret = pt_dmaengine_register(pt);
151151
if (ret)
152152
ae4_destroy_work(ae4);
153+
else
154+
ptdma_debugfs_setup(pt);
153155

154156
return ret;
155157
}

drivers/dma/amd/ptdma/ptdma-debugfs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,4 @@ void ptdma_debugfs_setup(struct pt_device *pt)
140140
&pt_debugfs_queue_fops);
141141
}
142142
}
143+
EXPORT_SYMBOL_GPL(ptdma_debugfs_setup);

0 commit comments

Comments
 (0)