diff options
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r-- | drivers/net/tg3.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index c25ba273b745..327836b1014e 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -3481,7 +3481,7 @@ static inline void tg3_full_unlock(struct tg3 *tp) | |||
3481 | /* One-shot MSI handler - Chip automatically disables interrupt | 3481 | /* One-shot MSI handler - Chip automatically disables interrupt |
3482 | * after sending MSI so driver doesn't have to do it. | 3482 | * after sending MSI so driver doesn't have to do it. |
3483 | */ | 3483 | */ |
3484 | static irqreturn_t tg3_msi_1shot(int irq, void *dev_id, struct pt_regs *regs) | 3484 | static irqreturn_t tg3_msi_1shot(int irq, void *dev_id) |
3485 | { | 3485 | { |
3486 | struct net_device *dev = dev_id; | 3486 | struct net_device *dev = dev_id; |
3487 | struct tg3 *tp = netdev_priv(dev); | 3487 | struct tg3 *tp = netdev_priv(dev); |
@@ -3499,7 +3499,7 @@ static irqreturn_t tg3_msi_1shot(int irq, void *dev_id, struct pt_regs *regs) | |||
3499 | * flush status block and interrupt mailbox. PCI ordering rules | 3499 | * flush status block and interrupt mailbox. PCI ordering rules |
3500 | * guarantee that MSI will arrive after the status block. | 3500 | * guarantee that MSI will arrive after the status block. |
3501 | */ | 3501 | */ |
3502 | static irqreturn_t tg3_msi(int irq, void *dev_id, struct pt_regs *regs) | 3502 | static irqreturn_t tg3_msi(int irq, void *dev_id) |
3503 | { | 3503 | { |
3504 | struct net_device *dev = dev_id; | 3504 | struct net_device *dev = dev_id; |
3505 | struct tg3 *tp = netdev_priv(dev); | 3505 | struct tg3 *tp = netdev_priv(dev); |
@@ -3520,7 +3520,7 @@ static irqreturn_t tg3_msi(int irq, void *dev_id, struct pt_regs *regs) | |||
3520 | return IRQ_RETVAL(1); | 3520 | return IRQ_RETVAL(1); |
3521 | } | 3521 | } |
3522 | 3522 | ||
3523 | static irqreturn_t tg3_interrupt(int irq, void *dev_id, struct pt_regs *regs) | 3523 | static irqreturn_t tg3_interrupt(int irq, void *dev_id) |
3524 | { | 3524 | { |
3525 | struct net_device *dev = dev_id; | 3525 | struct net_device *dev = dev_id; |
3526 | struct tg3 *tp = netdev_priv(dev); | 3526 | struct tg3 *tp = netdev_priv(dev); |
@@ -3563,7 +3563,7 @@ out: | |||
3563 | return IRQ_RETVAL(handled); | 3563 | return IRQ_RETVAL(handled); |
3564 | } | 3564 | } |
3565 | 3565 | ||
3566 | static irqreturn_t tg3_interrupt_tagged(int irq, void *dev_id, struct pt_regs *regs) | 3566 | static irqreturn_t tg3_interrupt_tagged(int irq, void *dev_id) |
3567 | { | 3567 | { |
3568 | struct net_device *dev = dev_id; | 3568 | struct net_device *dev = dev_id; |
3569 | struct tg3 *tp = netdev_priv(dev); | 3569 | struct tg3 *tp = netdev_priv(dev); |
@@ -3606,8 +3606,7 @@ out: | |||
3606 | } | 3606 | } |
3607 | 3607 | ||
3608 | /* ISR for interrupt test */ | 3608 | /* ISR for interrupt test */ |
3609 | static irqreturn_t tg3_test_isr(int irq, void *dev_id, | 3609 | static irqreturn_t tg3_test_isr(int irq, void *dev_id) |
3610 | struct pt_regs *regs) | ||
3611 | { | 3610 | { |
3612 | struct net_device *dev = dev_id; | 3611 | struct net_device *dev = dev_id; |
3613 | struct tg3 *tp = netdev_priv(dev); | 3612 | struct tg3 *tp = netdev_priv(dev); |
@@ -3651,7 +3650,7 @@ static void tg3_poll_controller(struct net_device *dev) | |||
3651 | { | 3650 | { |
3652 | struct tg3 *tp = netdev_priv(dev); | 3651 | struct tg3 *tp = netdev_priv(dev); |
3653 | 3652 | ||
3654 | tg3_interrupt(tp->pdev->irq, dev, NULL); | 3653 | tg3_interrupt(tp->pdev->irq, dev); |
3655 | } | 3654 | } |
3656 | #endif | 3655 | #endif |
3657 | 3656 | ||
@@ -6838,7 +6837,7 @@ restart_timer: | |||
6838 | 6837 | ||
6839 | static int tg3_request_irq(struct tg3 *tp) | 6838 | static int tg3_request_irq(struct tg3 *tp) |
6840 | { | 6839 | { |
6841 | irqreturn_t (*fn)(int, void *, struct pt_regs *); | 6840 | irq_handler_t fn; |
6842 | unsigned long flags; | 6841 | unsigned long flags; |
6843 | struct net_device *dev = tp->dev; | 6842 | struct net_device *dev = tp->dev; |
6844 | 6843 | ||