[ATM]: [he] Use the DMA_32BIT_MASK constant from dma-mapping.h
authorchas williams <chas@cmf.nrl.navy.mil>
Mon, 25 Apr 2005 01:55:35 +0000 (18:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Apr 2005 01:55:35 +0000 (18:55 -0700)
Signed-off-by: Tobias Klauser <tklauser@nuerscht.ch>
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/he.c
drivers/atm/he.h

index c2c31a5f4513a20341e36eb2bfb04f986e8dbccc..3022c548a132317e4b8c9334b0cd520b63bde32e 100644 (file)
@@ -70,6 +70,7 @@
 #include <linux/sched.h>
 #include <linux/timer.h>
 #include <linux/interrupt.h>
+#include <linux/dma-mapping.h>
 #include <asm/io.h>
 #include <asm/byteorder.h>
 #include <asm/uaccess.h>
@@ -371,7 +372,7 @@ he_init_one(struct pci_dev *pci_dev, const struct pci_device_id *pci_ent)
 
        if (pci_enable_device(pci_dev))
                return -EIO;
-       if (pci_set_dma_mask(pci_dev, HE_DMA_MASK) != 0) {
+       if (pci_set_dma_mask(pci_dev, DMA_32BIT_MASK) != 0) {
                printk(KERN_WARNING "he: no suitable dma available\n");
                err = -EIO;
                goto init_one_failure;
index 1a903859343afac98bedd32d16b072dccd4e5832..1dc277547a7362572af4f1c9b7bbecec42e413fc 100644 (file)
@@ -380,8 +380,6 @@ struct he_vcc
 #define PCI_VENDOR_ID_FORE     0x1127
 #define PCI_DEVICE_ID_FORE_HE  0x400
 
-#define HE_DMA_MASK            0xffffffff
-
 #define GEN_CNTL_0                             0x40
 #define  INT_PROC_ENBL         (1<<25)
 #define  SLAVE_ENDIAN_MODE     (1<<16)