drivers/scsi/a100u2w: Use the DMA_{64,
Subsystems (2)
PATCH 1/19 drivers/scsi/a100u2w: Use the DMA_{64,
Hello,
Description: Use the DMA_{64,32}BIT_MASK constants from dma-mapping.h when calling pci_set_dma_mask() or pci_set_consistent_dma_mask() See http://marc.theaimsgroup.com/?t=108001993000001&r=1&w=2 for details
drivers/scsi/a100u2w.c +1 -1
@@ -1052,7 +1052,7 @@ static int __devinit inia100_probe_one(sif (pci_enable_device (pdev)) goto out; -if (pci_set_dma_mask (pdev,0xffffffffULL )) { +if (pci_set_dma_mask (pdev,DMA_32BIT_MASK )) {printk (KERN_WARNING "Unable to set 32bit DMA " "on inia100 adapter, ignoring.\n" ); goto out_disable_device;
PATCH 1/19 drivers/scsi/a100u2w: Use the
The previous patch did not compile cleanly on all architectures so here's a fixed one.
Use the DMA_32BIT_MASK constant from dma-mapping.h when calling pci_set_dma_mask() or pci_set_consistent_dma_mask()
This patch includes dma-mapping.h explicitly because it caused errors on some architectures otherwise.
See http://marc.theaimsgroup.com/?t=108001993000001&r=1&w=2 for details
drivers/scsi/a100u2w.c +2 -1
@@ -89,6 +89,7 @@#include <linux/string.h> #include <linux/ioport.h> #include <linux/slab.h> +#include <linux/dma-mapping.h> #include <asm/io.h> #include <asm/irq.h>
@@ -1052,7 +1053,7 @@ static int __devinit inia100_probe_one(sif (pci_enable_device (pdev)) goto out; -if (pci_set_dma_mask (pdev,0xffffffffULL )) { +if (pci_set_dma_mask (pdev,DMA_32BIT_MASK )) {printk (KERN_WARNING "Unable to set 32bit DMA " "on inia100 adapter, ignoring.\n" ); goto out_disable_device;
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors