diff options
Diffstat (limited to 'drivers/net/8139cp.c')
-rw-r--r-- | drivers/net/8139cp.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/8139cp.c b/drivers/net/8139cp.c index 0cdc830449d8..1959654cbec8 100644 --- a/drivers/net/8139cp.c +++ b/drivers/net/8139cp.c | |||
@@ -52,7 +52,6 @@ | |||
52 | #define DRV_RELDATE "Mar 22, 2004" | 52 | #define DRV_RELDATE "Mar 22, 2004" |
53 | 53 | ||
54 | 54 | ||
55 | #include <linux/config.h> | ||
56 | #include <linux/module.h> | 55 | #include <linux/module.h> |
57 | #include <linux/moduleparam.h> | 56 | #include <linux/moduleparam.h> |
58 | #include <linux/kernel.h> | 57 | #include <linux/kernel.h> |
@@ -1204,7 +1203,7 @@ static int cp_open (struct net_device *dev) | |||
1204 | 1203 | ||
1205 | cp_init_hw(cp); | 1204 | cp_init_hw(cp); |
1206 | 1205 | ||
1207 | rc = request_irq(dev->irq, cp_interrupt, SA_SHIRQ, dev->name, dev); | 1206 | rc = request_irq(dev->irq, cp_interrupt, IRQF_SHARED, dev->name, dev); |
1208 | if (rc) | 1207 | if (rc) |
1209 | goto err_out_hw; | 1208 | goto err_out_hw; |
1210 | 1209 | ||
@@ -1823,7 +1822,7 @@ static int cp_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) | |||
1823 | struct cp_private *cp; | 1822 | struct cp_private *cp; |
1824 | int rc; | 1823 | int rc; |
1825 | void __iomem *regs; | 1824 | void __iomem *regs; |
1826 | long pciaddr; | 1825 | resource_size_t pciaddr; |
1827 | unsigned int addr_len, i, pci_using_dac; | 1826 | unsigned int addr_len, i, pci_using_dac; |
1828 | u8 pci_rev; | 1827 | u8 pci_rev; |
1829 | 1828 | ||
@@ -1883,8 +1882,8 @@ static int cp_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) | |||
1883 | } | 1882 | } |
1884 | if (pci_resource_len(pdev, 1) < CP_REGS_SIZE) { | 1883 | if (pci_resource_len(pdev, 1) < CP_REGS_SIZE) { |
1885 | rc = -EIO; | 1884 | rc = -EIO; |
1886 | printk(KERN_ERR PFX "MMIO resource (%lx) too small on pci dev %s\n", | 1885 | printk(KERN_ERR PFX "MMIO resource (%llx) too small on pci dev %s\n", |
1887 | pci_resource_len(pdev, 1), pci_name(pdev)); | 1886 | (unsigned long long)pci_resource_len(pdev, 1), pci_name(pdev)); |
1888 | goto err_out_res; | 1887 | goto err_out_res; |
1889 | } | 1888 | } |
1890 | 1889 | ||
@@ -1916,8 +1915,9 @@ static int cp_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) | |||
1916 | regs = ioremap(pciaddr, CP_REGS_SIZE); | 1915 | regs = ioremap(pciaddr, CP_REGS_SIZE); |
1917 | if (!regs) { | 1916 | if (!regs) { |
1918 | rc = -EIO; | 1917 | rc = -EIO; |
1919 | printk(KERN_ERR PFX "Cannot map PCI MMIO (%lx@%lx) on pci dev %s\n", | 1918 | printk(KERN_ERR PFX "Cannot map PCI MMIO (%llx@%llx) on pci dev %s\n", |
1920 | pci_resource_len(pdev, 1), pciaddr, pci_name(pdev)); | 1919 | (unsigned long long)pci_resource_len(pdev, 1), |
1920 | (unsigned long long)pciaddr, pci_name(pdev)); | ||
1921 | goto err_out_res; | 1921 | goto err_out_res; |
1922 | } | 1922 | } |
1923 | dev->base_addr = (unsigned long) regs; | 1923 | dev->base_addr = (unsigned long) regs; |