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.
Showing the changes to include/linux/platform_data (1 of 2 files). Show all
Unified · Split
| @@ -26,11 +26,13 @@ struct dma_slave_map; · 25 unmodified lines | ||
| 26 | 26 | * @max_mm_channels: Maximum number of MM DMA channels in each direction |
| 27 | 27 | * @device_map: DMA slave map |
| 28 | 28 | * @irq_index: The index of first IRQ |
| 29 | + * @dma_dev: The device pointer for dma operations | |
| 29 | 30 | */ |
| 30 | 31 | struct qdma_platdata { |
| 31 | 32 | u32 max_mm_channels; |
| 32 | 33 | u32 irq_index; |
| 33 | 34 | struct dma_slave_map *device_map; |
| 35 | + struct device *dma_dev; | |
| 34 | 36 | }; |
| 35 | 37 | |
| 36 | 38 | #endif /* _PLATDATA_AMD_QDMA_H */ |