Skip to content

Commit eac45bd

Browse files
committed
staging: vchiq_arm: Use g_dma_dev for dma_unmap_sg
Commit "staging: vchiq_arm: Clean up 40-bit DMA support" failed to change one of the calls to dma_unmap_sg to pass in g_dma_dev (rather than g_dev). Correct that oversight. See: #3647 Signed-off-by: Phil Elwell <[email protected]>
1 parent 3f54521 commit eac45bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ free_pagelist(struct vchiq_pagelist_info *pagelistinfo,
641641
* NOTE: dma_unmap_sg must be called before the
642642
* cpu can touch any of the data/pages.
643643
*/
644-
dma_unmap_sg(g_dev, pagelistinfo->scatterlist,
644+
dma_unmap_sg(g_dma_dev, pagelistinfo->scatterlist,
645645
pagelistinfo->num_pages, pagelistinfo->dma_dir);
646646
pagelistinfo->scatterlist_mapped = 0;
647647

0 commit comments

Comments
 (0)