drivers/net/wireless/ipw2100: Use the
Subsystems (2)
PATCH 1/1 drivers/net/wireless/ipw2100: Use the
Use the DMA_32BIT_MASK constant from dma-mapping.h when calling pci_set_dma_mask() or pci_set_consistent_dma_mask() instead of custom macros.
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/net/wireless/ipw2100.c +2 -5
@@ -146,6 +146,7 @@ that only one external action is invoked#include <linux/netdevice.h> #include <linux/ethtool.h> #include <linux/pci.h> +#include <linux/dma-mapping.h> #include <linux/proc_fs.h> #include <linux/skbuff.h> #include <asm/uaccess.h>
@@ -6440,10 +6441,6 @@ static struct net_device *ipw2100_alloc_return dev; } - - -#define PCI_DMA_32BIT 0x00000000ffffffffULL -static int ipw2100_pci_init_one (struct pci_dev *pci_dev,const struct pci_device_id *ent) {
@@ -6497,7 +6494,7 @@ static int ipw2100_pci_init_one(struct ppci_set_master (pci_dev);pci_set_drvdata (pci_dev, priv); - err =pci_set_dma_mask (pci_dev,PCI_DMA_32BIT ); + err =pci_set_dma_mask (pci_dev,DMA_32BIT_MASK );if (err) { printk(KERN_WARNING DRV_NAME "Error calling pci_set_dma_mask.\n");
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
PATCH 1/1 drivers/net/wireless/ipw2200: Use the
Use the DMA_32BIT_MASK constant from dma-mapping.h when calling pci_set_dma_mask() or pci_set_consistent_dma_mask() instead of custom macros.
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/net/wireless/ipw2200.c +2 -3
@@ -6993,10 +6993,9 @@ static int ipw_pci_probe(struct pci_devpci_set_master (pdev); -#define PCI_DMA_32BIT 0x00000000ffffffffULL - err =pci_set_dma_mask (pdev,PCI_DMA_32BIT ); + err =pci_set_dma_mask (pdev,DMA_32BIT_MASK );if (!err) - err =pci_set_consistent_dma_mask (pdev,PCI_DMA_32BIT ); + err =pci_set_consistent_dma_mask (pdev,DMA_32BIT_MASK );if (err) { printk(KERN_WARNING DRV_NAME ": No suitable DMA available.\n"); goto out_pci_disable_device;
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors