diff options
author | Marin Mitov <mitov@issp.bas.bg> | 2009-11-08 00:59:27 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-10 23:54:39 -0500 |
commit | 8cbd9623da7e7a99c6bd0f0b7d21d17c233c6abb (patch) | |
tree | 1a3e360be45f75c3d55df01f7c295e8a3fbb0a74 /drivers/net/niu.c | |
parent | 30fff9231fad757c061285e347b33c5149c2c2e4 (diff) |
niu: Use DMA_BIT_MASK(44) instead of deprecated DMA_44BIT_MASK
Use DMA_BIT_MASK(44) instead of deprecated DMA_44BIT_MASK
Signed-off-by: Marin Mitov <mitov@issp.bas.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/niu.c')
-rw-r--r-- | drivers/net/niu.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/niu.c b/drivers/net/niu.c index 5506f870037f..44558fcb56ac 100644 --- a/drivers/net/niu.c +++ b/drivers/net/niu.c | |||
@@ -45,10 +45,6 @@ MODULE_DESCRIPTION("NIU ethernet driver"); | |||
45 | MODULE_LICENSE("GPL"); | 45 | MODULE_LICENSE("GPL"); |
46 | MODULE_VERSION(DRV_MODULE_VERSION); | 46 | MODULE_VERSION(DRV_MODULE_VERSION); |
47 | 47 | ||
48 | #ifndef DMA_44BIT_MASK | ||
49 | #define DMA_44BIT_MASK 0x00000fffffffffffULL | ||
50 | #endif | ||
51 | |||
52 | #ifndef readq | 48 | #ifndef readq |
53 | static u64 readq(void __iomem *reg) | 49 | static u64 readq(void __iomem *reg) |
54 | { | 50 | { |
@@ -9918,7 +9914,7 @@ static int __devinit niu_pci_init_one(struct pci_dev *pdev, | |||
9918 | PCI_EXP_DEVCTL_RELAX_EN); | 9914 | PCI_EXP_DEVCTL_RELAX_EN); |
9919 | pci_write_config_word(pdev, pos + PCI_EXP_DEVCTL, val16); | 9915 | pci_write_config_word(pdev, pos + PCI_EXP_DEVCTL, val16); |
9920 | 9916 | ||
9921 | dma_mask = DMA_44BIT_MASK; | 9917 | dma_mask = DMA_BIT_MASK(44); |
9922 | err = pci_set_dma_mask(pdev, dma_mask); | 9918 | err = pci_set_dma_mask(pdev, dma_mask); |
9923 | if (!err) { | 9919 | if (!err) { |
9924 | dev->features |= NETIF_F_HIGHDMA; | 9920 | dev->features |= NETIF_F_HIGHDMA; |