tree 84ee98bf0e580b5e552933053df9410fb1b6de76
parent 05743d165be9f0293b4ff67f4e1cf3724eb13e1f
author Tobias Klauser <[EMAIL PROTECTED]> Tue, 21 Jun 2005 04:28:41 -0700
committer Jeff Garzik <[EMAIL PROTECTED]> Tue, 28 Jun 2005 07:25:10 -0400

[PATCH] drivers/net/wireless/ipw2200: Use the DMA_32BIT_MASK constant

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 for details

Signed-off-by: Tobias Klauser <[EMAIL PROTECTED]>
Cc: Jeff Garzik <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>

 drivers/net/wireless/ipw2200.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/net/wireless/ipw2200.c b/drivers/net/wireless/ipw2200.c
--- a/drivers/net/wireless/ipw2200.c
+++ b/drivers/net/wireless/ipw2200.c
@@ -6979,10 +6979,9 @@ static int ipw_pci_probe(struct pci_dev 
-#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;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to