drivers/net/tlan.c : Use the DMA_{32|64}_MASK constant
Subsystems (2)
PATCH 1/1 drivers/net/tlan.c : Use the DMA_{32|64}_MASK constant
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() 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/tlan.c +2 -1
@@ -177,6 +177,7 @@#include <linux/spinlock.h> #include <linux/workqueue.h> #include <linux/mii.h> +#include <linux/dma-mapping.h> #include "tlan.h"
@@ -555,7 +556,7 @@ static int __devinit TLan_probe1(struct priv->adapter = &board_info[ent->driver_data]; - rc =pci_set_dma_mask (pdev,0xFFFFFFFF ); + rc =pci_set_dma_mask (pdev,DMA_32BIT_MASK );if (rc) {printk (KERN_ERR "TLAN: No suitable PCI mapping available.\n" ); goto err_out_free_dev;
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
Re: [KJ] [PATCH] drivers/net/tlan.c : Use the DMA_{32|64}_MASK
Quoted 10 lines · Christophe Lucas
Description:
Use the DMA_{64,32}BIT_MASK constants fromdma-mapping.hwhen callingpci_set_dma_mask()orpci_set_consistent_dma_mask()instead of custom macros.
This patch includesdma-mapping.hexplicitly because it caused errors on some architectures otherwise.
See http://marc.theaimsgroup.com/?t=108001993000001&r=1&w=2 for detailsSigned-off-by Christophe Lucas <[email protected]>
Sorry, this patch has already been send by Tobias.
~Christophe
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors