diff options
author | Lizhi Hou <lizhi.hou@amd.com> | 2024-09-18 20:10:22 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2024-12-04 13:57:32 +0100 |
commit | dcbef0798eb825cd584f7a93f62bed63f7fbbfc9 (patch) | |
tree | 73f9cdb1f788faf8e98245f191dd6230e574b029 /include | |
parent | dmaengine: apple-admac: Avoid accessing registers in probe (diff) | |
download | linux-dcbef0798eb825cd584f7a93f62bed63f7fbbfc9.tar.xz linux-dcbef0798eb825cd584f7a93f62bed63f7fbbfc9.zip |
dmaengine: amd: qdma: Remove using the private get and set dma_ops APIs
The get_dma_ops and set_dma_ops APIs were never for driver to use. Remove
these calls from QDMA driver. Instead, pass the DMA device pointer from the
qdma_platdata structure.
Fixes: 73d5fc92a11c ("dmaengine: amd: qdma: Add AMD QDMA driver")
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20240918181022.2155715-1-lizhi.hou@amd.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/platform_data/amd_qdma.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/platform_data/amd_qdma.h b/include/linux/platform_data/amd_qdma.h index 576d952f97ed..967a6ef31cf9 100644 --- a/include/linux/platform_data/amd_qdma.h +++ b/include/linux/platform_data/amd_qdma.h @@ -26,11 +26,13 @@ struct dma_slave_map; * @max_mm_channels: Maximum number of MM DMA channels in each direction * @device_map: DMA slave map * @irq_index: The index of first IRQ + * @dma_dev: The device pointer for dma operations */ struct qdma_platdata { u32 max_mm_channels; u32 irq_index; struct dma_slave_map *device_map; + struct device *dma_dev; }; #endif /* _PLATDATA_AMD_QDMA_H */ |