diff options
Diffstat (limited to 'drivers/scsi/megaraid/megaraid_mbox.c')
-rw-r--r-- | drivers/scsi/megaraid/megaraid_mbox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/megaraid/megaraid_mbox.c b/drivers/scsi/megaraid/megaraid_mbox.c index b2c19449119d..234f0b7eb21c 100644 --- a/drivers/scsi/megaraid/megaraid_mbox.c +++ b/drivers/scsi/megaraid/megaraid_mbox.c | |||
@@ -473,7 +473,7 @@ megaraid_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
473 | 473 | ||
474 | // Setup the default DMA mask. This would be changed later on | 474 | // Setup the default DMA mask. This would be changed later on |
475 | // depending on hardware capabilities | 475 | // depending on hardware capabilities |
476 | if (pci_set_dma_mask(adapter->pdev, DMA_32BIT_MASK) != 0) { | 476 | if (pci_set_dma_mask(adapter->pdev, DMA_BIT_MASK(32)) != 0) { |
477 | 477 | ||
478 | con_log(CL_ANN, (KERN_WARNING | 478 | con_log(CL_ANN, (KERN_WARNING |
479 | "megaraid: pci_set_dma_mask failed:%d\n", __LINE__)); | 479 | "megaraid: pci_set_dma_mask failed:%d\n", __LINE__)); |
@@ -904,7 +904,7 @@ megaraid_init_mbox(adapter_t *adapter) | |||
904 | con_log(CL_ANN, (KERN_WARNING | 904 | con_log(CL_ANN, (KERN_WARNING |
905 | "megaraid: DMA mask for 64-bit failed\n")); | 905 | "megaraid: DMA mask for 64-bit failed\n")); |
906 | 906 | ||
907 | if (pci_set_dma_mask (adapter->pdev, DMA_32BIT_MASK)) { | 907 | if (pci_set_dma_mask (adapter->pdev, DMA_BIT_MASK(32))) { |
908 | con_log(CL_ANN, (KERN_WARNING | 908 | con_log(CL_ANN, (KERN_WARNING |
909 | "megaraid: 32-bit DMA mask failed\n")); | 909 | "megaraid: 32-bit DMA mask failed\n")); |
910 | goto out_free_sysfs_res; | 910 | goto out_free_sysfs_res; |