diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_init.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_init.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index c1c36812c3d2..bede11e16349 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c | |||
@@ -6973,9 +6973,9 @@ lpfc_sli4_create_rpi_hdr(struct lpfc_hba *phba) | |||
6973 | if (!dmabuf) | 6973 | if (!dmabuf) |
6974 | return NULL; | 6974 | return NULL; |
6975 | 6975 | ||
6976 | dmabuf->virt = dma_zalloc_coherent(&phba->pcidev->dev, | 6976 | dmabuf->virt = dma_alloc_coherent(&phba->pcidev->dev, |
6977 | LPFC_HDR_TEMPLATE_SIZE, | 6977 | LPFC_HDR_TEMPLATE_SIZE, |
6978 | &dmabuf->phys, GFP_KERNEL); | 6978 | &dmabuf->phys, GFP_KERNEL); |
6979 | if (!dmabuf->virt) { | 6979 | if (!dmabuf->virt) { |
6980 | rpi_hdr = NULL; | 6980 | rpi_hdr = NULL; |
6981 | goto err_free_dmabuf; | 6981 | goto err_free_dmabuf; |
@@ -7397,8 +7397,8 @@ lpfc_sli_pci_mem_setup(struct lpfc_hba *phba) | |||
7397 | } | 7397 | } |
7398 | 7398 | ||
7399 | /* Allocate memory for SLI-2 structures */ | 7399 | /* Allocate memory for SLI-2 structures */ |
7400 | phba->slim2p.virt = dma_zalloc_coherent(&pdev->dev, SLI2_SLIM_SIZE, | 7400 | phba->slim2p.virt = dma_alloc_coherent(&pdev->dev, SLI2_SLIM_SIZE, |
7401 | &phba->slim2p.phys, GFP_KERNEL); | 7401 | &phba->slim2p.phys, GFP_KERNEL); |
7402 | if (!phba->slim2p.virt) | 7402 | if (!phba->slim2p.virt) |
7403 | goto out_iounmap; | 7403 | goto out_iounmap; |
7404 | 7404 | ||
@@ -7816,8 +7816,8 @@ lpfc_create_bootstrap_mbox(struct lpfc_hba *phba) | |||
7816 | * plus an alignment restriction of 16 bytes. | 7816 | * plus an alignment restriction of 16 bytes. |
7817 | */ | 7817 | */ |
7818 | bmbx_size = sizeof(struct lpfc_bmbx_create) + (LPFC_ALIGN_16_BYTE - 1); | 7818 | bmbx_size = sizeof(struct lpfc_bmbx_create) + (LPFC_ALIGN_16_BYTE - 1); |
7819 | dmabuf->virt = dma_zalloc_coherent(&phba->pcidev->dev, bmbx_size, | 7819 | dmabuf->virt = dma_alloc_coherent(&phba->pcidev->dev, bmbx_size, |
7820 | &dmabuf->phys, GFP_KERNEL); | 7820 | &dmabuf->phys, GFP_KERNEL); |
7821 | if (!dmabuf->virt) { | 7821 | if (!dmabuf->virt) { |
7822 | kfree(dmabuf); | 7822 | kfree(dmabuf); |
7823 | return -ENOMEM; | 7823 | return -ENOMEM; |