One of the pointer passed to dmam_alloc_coherent seems to be phys_addr_t * instead of dma_addr_t *. This address will be used by dma apis, so change this to proper type.
Unified · Split
| @@ -93,7 +93,7 @@ · 92 unmodified lines | ||
| 93 | 93 | |
| 94 | 94 | struct slim_ctrl_buf { |
| 95 | 95 | void *base; |
| 96 | − phys_addr_t phy; | |
| 96 | + dma_addr_t phy; | |
| 97 | 97 | spinlock_t lock; |
| 98 | 98 | int head; |
| 99 | 99 | int tail; |