aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/forcedeth.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/forcedeth.c')
-rw-r--r--drivers/net/forcedeth.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/net/forcedeth.c b/drivers/net/forcedeth.c
index eea1d66c530e..99b7a411db28 100644
--- a/drivers/net/forcedeth.c
+++ b/drivers/net/forcedeth.c
@@ -2397,7 +2397,7 @@ static void nv_link_irq(struct net_device *dev)
2397 dprintk(KERN_DEBUG "%s: link change notification done.\n", dev->name); 2397 dprintk(KERN_DEBUG "%s: link change notification done.\n", dev->name);
2398} 2398}
2399 2399
2400static irqreturn_t nv_nic_irq(int foo, void *data, struct pt_regs *regs) 2400static irqreturn_t nv_nic_irq(int foo, void *data)
2401{ 2401{
2402 struct net_device *dev = (struct net_device *) data; 2402 struct net_device *dev = (struct net_device *) data;
2403 struct fe_priv *np = netdev_priv(dev); 2403 struct fe_priv *np = netdev_priv(dev);
@@ -2490,7 +2490,7 @@ static irqreturn_t nv_nic_irq(int foo, void *data, struct pt_regs *regs)
2490 return IRQ_RETVAL(i); 2490 return IRQ_RETVAL(i);
2491} 2491}
2492 2492
2493static irqreturn_t nv_nic_irq_tx(int foo, void *data, struct pt_regs *regs) 2493static irqreturn_t nv_nic_irq_tx(int foo, void *data)
2494{ 2494{
2495 struct net_device *dev = (struct net_device *) data; 2495 struct net_device *dev = (struct net_device *) data;
2496 struct fe_priv *np = netdev_priv(dev); 2496 struct fe_priv *np = netdev_priv(dev);
@@ -2576,7 +2576,7 @@ static int nv_napi_poll(struct net_device *dev, int *budget)
2576#endif 2576#endif
2577 2577
2578#ifdef CONFIG_FORCEDETH_NAPI 2578#ifdef CONFIG_FORCEDETH_NAPI
2579static irqreturn_t nv_nic_irq_rx(int foo, void *data, struct pt_regs *regs) 2579static irqreturn_t nv_nic_irq_rx(int foo, void *data)
2580{ 2580{
2581 struct net_device *dev = (struct net_device *) data; 2581 struct net_device *dev = (struct net_device *) data;
2582 u8 __iomem *base = get_hwbase(dev); 2582 u8 __iomem *base = get_hwbase(dev);
@@ -2594,7 +2594,7 @@ static irqreturn_t nv_nic_irq_rx(int foo, void *data, struct pt_regs *regs)
2594 return IRQ_HANDLED; 2594 return IRQ_HANDLED;
2595} 2595}
2596#else 2596#else
2597static irqreturn_t nv_nic_irq_rx(int foo, void *data, struct pt_regs *regs) 2597static irqreturn_t nv_nic_irq_rx(int foo, void *data)
2598{ 2598{
2599 struct net_device *dev = (struct net_device *) data; 2599 struct net_device *dev = (struct net_device *) data;
2600 struct fe_priv *np = netdev_priv(dev); 2600 struct fe_priv *np = netdev_priv(dev);
@@ -2641,7 +2641,7 @@ static irqreturn_t nv_nic_irq_rx(int foo, void *data, struct pt_regs *regs)
2641} 2641}
2642#endif 2642#endif
2643 2643
2644static irqreturn_t nv_nic_irq_other(int foo, void *data, struct pt_regs *regs) 2644static irqreturn_t nv_nic_irq_other(int foo, void *data)
2645{ 2645{
2646 struct net_device *dev = (struct net_device *) data; 2646 struct net_device *dev = (struct net_device *) data;
2647 struct fe_priv *np = netdev_priv(dev); 2647 struct fe_priv *np = netdev_priv(dev);
@@ -2695,7 +2695,7 @@ static irqreturn_t nv_nic_irq_other(int foo, void *data, struct pt_regs *regs)
2695 return IRQ_RETVAL(i); 2695 return IRQ_RETVAL(i);
2696} 2696}
2697 2697
2698static irqreturn_t nv_nic_irq_test(int foo, void *data, struct pt_regs *regs) 2698static irqreturn_t nv_nic_irq_test(int foo, void *data)
2699{ 2699{
2700 struct net_device *dev = (struct net_device *) data; 2700 struct net_device *dev = (struct net_device *) data;
2701 struct fe_priv *np = netdev_priv(dev); 2701 struct fe_priv *np = netdev_priv(dev);
@@ -2905,22 +2905,22 @@ static void nv_do_nic_poll(unsigned long data)
2905 pci_push(base); 2905 pci_push(base);
2906 2906
2907 if (!using_multi_irqs(dev)) { 2907 if (!using_multi_irqs(dev)) {
2908 nv_nic_irq(0, dev, NULL); 2908 nv_nic_irq(0, dev);
2909 if (np->msi_flags & NV_MSI_X_ENABLED) 2909 if (np->msi_flags & NV_MSI_X_ENABLED)
2910 enable_irq_lockdep(np->msi_x_entry[NV_MSI_X_VECTOR_ALL].vector); 2910 enable_irq_lockdep(np->msi_x_entry[NV_MSI_X_VECTOR_ALL].vector);
2911 else 2911 else
2912 enable_irq_lockdep(dev->irq); 2912 enable_irq_lockdep(dev->irq);
2913 } else { 2913 } else {
2914 if (np->nic_poll_irq & NVREG_IRQ_RX_ALL) { 2914 if (np->nic_poll_irq & NVREG_IRQ_RX_ALL) {
2915 nv_nic_irq_rx(0, dev, NULL); 2915 nv_nic_irq_rx(0, dev);
2916 enable_irq_lockdep(np->msi_x_entry[NV_MSI_X_VECTOR_RX].vector); 2916 enable_irq_lockdep(np->msi_x_entry[NV_MSI_X_VECTOR_RX].vector);
2917 } 2917 }
2918 if (np->nic_poll_irq & NVREG_IRQ_TX_ALL) { 2918 if (np->nic_poll_irq & NVREG_IRQ_TX_ALL) {
2919 nv_nic_irq_tx(0, dev, NULL); 2919 nv_nic_irq_tx(0, dev);
2920 enable_irq_lockdep(np->msi_x_entry[NV_MSI_X_VECTOR_TX].vector); 2920 enable_irq_lockdep(np->msi_x_entry[NV_MSI_X_VECTOR_TX].vector);
2921 } 2921 }
2922 if (np->nic_poll_irq & NVREG_IRQ_OTHER) { 2922 if (np->nic_poll_irq & NVREG_IRQ_OTHER) {
2923 nv_nic_irq_other(0, dev, NULL); 2923 nv_nic_irq_other(0, dev);
2924 enable_irq_lockdep(np->msi_x_entry[NV_MSI_X_VECTOR_OTHER].vector); 2924 enable_irq_lockdep(np->msi_x_entry[NV_MSI_X_VECTOR_OTHER].vector);
2925 } 2925 }
2926 } 2926 }