drivers/scsi/atp870u: Use the DMA_{64,
Subsystems (2)
PATCH 7/19 drivers/scsi/atp870u: 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/atp870u.c +1 -1
@@ -2287,7 +2287,7 @@ static int atp870u_probe(struct pci_devif (pci_enable_device (dev))return -EIO ; -if (pci_set_dma_mask (dev,0xFFFFFFFFUL )) { +if (pci_set_dma_mask (dev,DMA_32BIT_MASK )) {printk (KERN_ERR "atp870u: 32bit DMA mask required but not available.\n" );return -EIO ; }
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
PATCH 7/19 drivers/scsi/atp870u: 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/atp870u.c +2 -1
@@ -27,6 +27,7 @@#include <linux/spinlock.h> #include <linux/pci.h> #include <linux/blkdev.h> +#include <linux/dma-mapping.h> #include <asm/system.h> #include <asm/io.h>
@@ -2287,7 +2288,7 @@ static int atp870u_probe(struct pci_devif (pci_enable_device (dev))return -EIO ; -if (pci_set_dma_mask (dev,0xFFFFFFFFUL )) { +if (pci_set_dma_mask (dev,DMA_32BIT_MASK )) {printk (KERN_ERR "atp870u: 32bit DMA mask required but not available.\n" );return -EIO ; }
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors