summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorchas williams <chas@cmf.nrl.navy.mil>2005-04-24 18:55:35 -0700
committerDavid S. Miller <davem@davemloft.net>2005-04-24 18:55:35 -0700
commite5695f0800f8450d9a48efb1424918d18093b00b (patch)
treeebb4478c0dfa9dae51dafec9ccc5e3e878206fa6 /drivers
parent56cb515628e6a831bb76783f282a71f7285dad33 (diff)
downloadop-kernel-dev-e5695f0800f8450d9a48efb1424918d18093b00b.zip
op-kernel-dev-e5695f0800f8450d9a48efb1424918d18093b00b.tar.gz
[ATM]: [he] Use the DMA_32BIT_MASK constant from dma-mapping.h
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/atm/he.c3
-rw-r--r--drivers/atm/he.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/drivers/atm/he.c b/drivers/atm/he.c
index c2c31a5..3022c54 100644
--- a/drivers/atm/he.c
+++ b/drivers/atm/he.c
@@ -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;
diff --git a/drivers/atm/he.h b/drivers/atm/he.h
index 1a90385..1dc2775 100644
--- a/drivers/atm/he.h
+++ b/drivers/atm/he.h
@@ -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)
OpenPOWER on IntegriCloud