diff options
-rw-r--r-- | drivers/net/wireless/ipw2100.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/wireless/ipw2100.c b/drivers/net/wireless/ipw2100.c index 69d7787b44b9..2f2ae1777805 100644 --- a/drivers/net/wireless/ipw2100.c +++ b/drivers/net/wireless/ipw2100.c | |||
@@ -146,6 +146,7 @@ that only one external action is invoked at a time. | |||
146 | #include <linux/netdevice.h> | 146 | #include <linux/netdevice.h> |
147 | #include <linux/ethtool.h> | 147 | #include <linux/ethtool.h> |
148 | #include <linux/pci.h> | 148 | #include <linux/pci.h> |
149 | #include <linux/dma-mapping.h> | ||
149 | #include <linux/proc_fs.h> | 150 | #include <linux/proc_fs.h> |
150 | #include <linux/skbuff.h> | 151 | #include <linux/skbuff.h> |
151 | #include <asm/uaccess.h> | 152 | #include <asm/uaccess.h> |
@@ -6423,10 +6424,6 @@ static struct net_device *ipw2100_alloc_device( | |||
6423 | return dev; | 6424 | return dev; |
6424 | } | 6425 | } |
6425 | 6426 | ||
6426 | |||
6427 | |||
6428 | #define PCI_DMA_32BIT 0x00000000ffffffffULL | ||
6429 | |||
6430 | static int ipw2100_pci_init_one(struct pci_dev *pci_dev, | 6427 | static int ipw2100_pci_init_one(struct pci_dev *pci_dev, |
6431 | const struct pci_device_id *ent) | 6428 | const struct pci_device_id *ent) |
6432 | { | 6429 | { |
@@ -6480,7 +6477,7 @@ static int ipw2100_pci_init_one(struct pci_dev *pci_dev, | |||
6480 | pci_set_master(pci_dev); | 6477 | pci_set_master(pci_dev); |
6481 | pci_set_drvdata(pci_dev, priv); | 6478 | pci_set_drvdata(pci_dev, priv); |
6482 | 6479 | ||
6483 | err = pci_set_dma_mask(pci_dev, PCI_DMA_32BIT); | 6480 | err = pci_set_dma_mask(pci_dev, DMA_32BIT_MASK); |
6484 | if (err) { | 6481 | if (err) { |
6485 | printk(KERN_WARNING DRV_NAME | 6482 | printk(KERN_WARNING DRV_NAME |
6486 | "Error calling pci_set_dma_mask.\n"); | 6483 | "Error calling pci_set_dma_mask.\n"); |