Skip to contentSkip to conversation

qla1280: use DMA_64BIT_MASK instead of ~ 0ULL

PATCH New Matthias Kaehlcke 1 participant 1 message Apr 17, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qla1280: use DMA_64BIT_MASK instead of ~ 0ULL

QLA1280: call pci_set_dma_mask with DMA_64BIT_MASK instead of ~ 0ULL

---

drivers/scsi/qla1280.c +1 -1
index 6777e8a..54d8bdf 100644
@@ -4293,7 +4293,7 @@ qla1280_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
 	ha->devnum = devnum;	/* specifies microcode load address */
 
 #ifdef QLA_64BIT_PTR
-	if (pci_set_dma_mask(ha->pdev, (dma_addr_t) ~ 0ULL)) {
+	if (pci_set_dma_mask(ha->pdev, DMA_64BIT_MASK)) {
 		if (pci_set_dma_mask(ha->pdev, DMA_32BIT_MASK)) {
 			printk(KERN_WARNING "scsi(%li): Unable to set a "
 			       "suitable DMA mask - aborting\n", ha->host_no); 
Signature · 6 lines
              Comunicar bichos a <[email protected]>
                     (LANG=es_ES uname --help)
                                                                 .''`.
    using free software / Debian GNU/Linux | http://debian.org  : :'  :
                                                                `. `'`
                                                                  `-