diff options
Diffstat (limited to 'drivers/scsi/mvumi.c')
-rw-r--r-- | drivers/scsi/mvumi.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/scsi/mvumi.c b/drivers/scsi/mvumi.c index dbe753fba486..36f64205ecfa 100644 --- a/drivers/scsi/mvumi.c +++ b/drivers/scsi/mvumi.c | |||
@@ -143,8 +143,9 @@ static struct mvumi_res *mvumi_alloc_mem_resource(struct mvumi_hba *mhba, | |||
143 | 143 | ||
144 | case RESOURCE_UNCACHED_MEMORY: | 144 | case RESOURCE_UNCACHED_MEMORY: |
145 | size = round_up(size, 8); | 145 | size = round_up(size, 8); |
146 | res->virt_addr = dma_zalloc_coherent(&mhba->pdev->dev, size, | 146 | res->virt_addr = dma_alloc_coherent(&mhba->pdev->dev, size, |
147 | &res->bus_addr, GFP_KERNEL); | 147 | &res->bus_addr, |
148 | GFP_KERNEL); | ||
148 | if (!res->virt_addr) { | 149 | if (!res->virt_addr) { |
149 | dev_err(&mhba->pdev->dev, | 150 | dev_err(&mhba->pdev->dev, |
150 | "unable to allocate consistent mem," | 151 | "unable to allocate consistent mem," |
@@ -246,8 +247,8 @@ static int mvumi_internal_cmd_sgl(struct mvumi_hba *mhba, struct mvumi_cmd *cmd, | |||
246 | if (size == 0) | 247 | if (size == 0) |
247 | return 0; | 248 | return 0; |
248 | 249 | ||
249 | virt_addr = dma_zalloc_coherent(&mhba->pdev->dev, size, &phy_addr, | 250 | virt_addr = dma_alloc_coherent(&mhba->pdev->dev, size, &phy_addr, |
250 | GFP_KERNEL); | 251 | GFP_KERNEL); |
251 | if (!virt_addr) | 252 | if (!virt_addr) |
252 | return -1; | 253 | return -1; |
253 | 254 | ||