diff options
-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; |