diff options
Diffstat (limited to 'drivers/scsi/mesh.c')
-rw-r--r-- | drivers/scsi/mesh.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/mesh.c b/drivers/scsi/mesh.c index f3e182eb0970..c9dc7740e9e7 100644 --- a/drivers/scsi/mesh.c +++ b/drivers/scsi/mesh.c | |||
@@ -1915,8 +1915,9 @@ static int mesh_probe(struct macio_dev *mdev, const struct of_device_id *match) | |||
1915 | /* We use the PCI APIs for now until the generic one gets fixed | 1915 | /* We use the PCI APIs for now until the generic one gets fixed |
1916 | * enough or until we get some macio-specific versions | 1916 | * enough or until we get some macio-specific versions |
1917 | */ | 1917 | */ |
1918 | dma_cmd_space = dma_zalloc_coherent(&macio_get_pci_dev(mdev)->dev, | 1918 | dma_cmd_space = dma_alloc_coherent(&macio_get_pci_dev(mdev)->dev, |
1919 | ms->dma_cmd_size, &dma_cmd_bus, GFP_KERNEL); | 1919 | ms->dma_cmd_size, &dma_cmd_bus, |
1920 | GFP_KERNEL); | ||
1920 | if (dma_cmd_space == NULL) { | 1921 | if (dma_cmd_space == NULL) { |
1921 | printk(KERN_ERR "mesh: can't allocate DMA table\n"); | 1922 | printk(KERN_ERR "mesh: can't allocate DMA table\n"); |
1922 | goto out_unmap; | 1923 | goto out_unmap; |