diff options
Diffstat (limited to 'drivers/net/tulip/de2104x.c')
-rw-r--r-- | drivers/net/tulip/de2104x.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/tulip/de2104x.c b/drivers/net/tulip/de2104x.c index 5f743b972949..d05c5aa254ee 100644 --- a/drivers/net/tulip/de2104x.c +++ b/drivers/net/tulip/de2104x.c | |||
@@ -31,7 +31,6 @@ | |||
31 | #define DRV_VERSION "0.7" | 31 | #define DRV_VERSION "0.7" |
32 | #define DRV_RELDATE "Mar 17, 2004" | 32 | #define DRV_RELDATE "Mar 17, 2004" |
33 | 33 | ||
34 | #include <linux/config.h> | ||
35 | #include <linux/module.h> | 34 | #include <linux/module.h> |
36 | #include <linux/kernel.h> | 35 | #include <linux/kernel.h> |
37 | #include <linux/netdevice.h> | 36 | #include <linux/netdevice.h> |
@@ -1372,7 +1371,7 @@ static int de_open (struct net_device *dev) | |||
1372 | 1371 | ||
1373 | dw32(IntrMask, 0); | 1372 | dw32(IntrMask, 0); |
1374 | 1373 | ||
1375 | rc = request_irq(dev->irq, de_interrupt, SA_SHIRQ, dev->name, dev); | 1374 | rc = request_irq(dev->irq, de_interrupt, IRQF_SHARED, dev->name, dev); |
1376 | if (rc) { | 1375 | if (rc) { |
1377 | printk(KERN_ERR "%s: IRQ %d request failure, err=%d\n", | 1376 | printk(KERN_ERR "%s: IRQ %d request failure, err=%d\n", |
1378 | dev->name, dev->irq, rc); | 1377 | dev->name, dev->irq, rc); |
@@ -2007,8 +2006,8 @@ static int __init de_init_one (struct pci_dev *pdev, | |||
2007 | } | 2006 | } |
2008 | if (pci_resource_len(pdev, 1) < DE_REGS_SIZE) { | 2007 | if (pci_resource_len(pdev, 1) < DE_REGS_SIZE) { |
2009 | rc = -EIO; | 2008 | rc = -EIO; |
2010 | printk(KERN_ERR PFX "MMIO resource (%lx) too small on pci dev %s\n", | 2009 | printk(KERN_ERR PFX "MMIO resource (%llx) too small on pci dev %s\n", |
2011 | pci_resource_len(pdev, 1), pci_name(pdev)); | 2010 | (unsigned long long)pci_resource_len(pdev, 1), pci_name(pdev)); |
2012 | goto err_out_res; | 2011 | goto err_out_res; |
2013 | } | 2012 | } |
2014 | 2013 | ||
@@ -2016,8 +2015,9 @@ static int __init de_init_one (struct pci_dev *pdev, | |||
2016 | regs = ioremap_nocache(pciaddr, DE_REGS_SIZE); | 2015 | regs = ioremap_nocache(pciaddr, DE_REGS_SIZE); |
2017 | if (!regs) { | 2016 | if (!regs) { |
2018 | rc = -EIO; | 2017 | rc = -EIO; |
2019 | printk(KERN_ERR PFX "Cannot map PCI MMIO (%lx@%lx) on pci dev %s\n", | 2018 | printk(KERN_ERR PFX "Cannot map PCI MMIO (%llx@%lx) on pci dev %s\n", |
2020 | pci_resource_len(pdev, 1), pciaddr, pci_name(pdev)); | 2019 | (unsigned long long)pci_resource_len(pdev, 1), |
2020 | pciaddr, pci_name(pdev)); | ||
2021 | goto err_out_res; | 2021 | goto err_out_res; |
2022 | } | 2022 | } |
2023 | dev->base_addr = (unsigned long) regs; | 2023 | dev->base_addr = (unsigned long) regs; |