Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43215
b: refs/heads/master
c: 51cc210
h: refs/heads/master
i:
  43213: 19a56cc
  43211: 8220c96
  43207: 490d7a4
  43199: d21b72e
v: v3
  • Loading branch information
Andrew Victor authored and Jeff Garzik committed Dec 7, 2006
1 parent 0b928f5 commit da0b405
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cf42553ab43e102bc98eca05523d2390a1eedde9
refs/heads/master: 51cc21045714cc9f48eb6901d95eb4e552ef2ca4
14 changes: 14 additions & 0 deletions trunk/drivers/net/arm/at91_ether.c
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,17 @@ static irqreturn_t at91ether_interrupt(int irq, void *dev_id)
return IRQ_HANDLED;
}

#ifdef CONFIG_NET_POLL_CONTROLLER
static void at91ether_poll_controller(struct net_device *dev)
{
unsigned long flags;

local_irq_save(flags);
at91ether_interrupt(dev->irq, dev);
local_irq_restore(flags);
}
#endif

/*
* Initialize the ethernet interface
*/
Expand Down Expand Up @@ -972,6 +983,9 @@ static int __init at91ether_setup(unsigned long phy_type, unsigned short phy_add
dev->set_mac_address = set_mac_address;
dev->ethtool_ops = &at91ether_ethtool_ops;
dev->do_ioctl = at91ether_ioctl;
#ifdef CONFIG_NET_POLL_CONTROLLER
dev->poll_controller = at91ether_poll_controller;
#endif

SET_NETDEV_DEV(dev, &pdev->dev);

Expand Down

0 comments on commit da0b405

Please sign in to comment.