Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: rts5208: use dmam_alloc_coherent

This patch replaces dma_alloc_coherent with the corresponding
managed interface.

Signed-off-by: Ronit Halder <ronit.crj@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ronit Halder and committed by
Greg Kroah-Hartman
27f88f3f 1446ff09

+2 -4
+2 -4
drivers/staging/rts5208/rtsx.c
··· 647 647 wait_timeout(200); 648 648 649 649 if (dev->rtsx_resv_buf) { 650 - dma_free_coherent(&(dev->pci->dev), RTSX_RESV_BUF_LEN, 651 - dev->rtsx_resv_buf, dev->rtsx_resv_buf_addr); 652 650 dev->chip->host_cmds_ptr = NULL; 653 651 dev->chip->host_sg_tbl_ptr = NULL; 654 652 } ··· 916 918 dev_info(&pci->dev, "Original address: 0x%lx, remapped address: 0x%lx\n", 917 919 (unsigned long)(dev->addr), (unsigned long)(dev->remap_addr)); 918 920 919 - dev->rtsx_resv_buf = dma_alloc_coherent(&(pci->dev), RTSX_RESV_BUF_LEN, 920 - &(dev->rtsx_resv_buf_addr), GFP_KERNEL); 921 + dev->rtsx_resv_buf = dmam_alloc_coherent(&pci->dev, RTSX_RESV_BUF_LEN, 922 + &dev->rtsx_resv_buf_addr, GFP_KERNEL); 921 923 if (dev->rtsx_resv_buf == NULL) { 922 924 dev_err(&pci->dev, "alloc dma buffer fail\n"); 923 925 err = -ENXIO;