OSDN Git Service

scsi: hisi_sas: Use dmam_alloc_coherent()
authorXiang Chen <chenxiang66@hisilicon.com>
Thu, 31 May 2018 12:50:42 +0000 (20:50 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 20 Jun 2018 02:02:25 +0000 (22:02 -0400)
commit4e63ac82b9f020f348ab6c9f062d2fbd2dcd0b7e
treeb8241bd665d68ae6fbdec277effa3fd1a82d4873
parent9458321750cbfdaf9fd3cb95194f37c52e0cb356
scsi: hisi_sas: Use dmam_alloc_coherent()

This patch replaces the usage of dma_alloc_coherent() with the managed
version, dmam_alloc_coherent(), hereby reducing replicated code.

Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by; John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_main.c