Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315477
b: refs/heads/master
c: ed36d7b
h: refs/heads/master
i:
  315475: 70a2b74
v: v3
  • Loading branch information
Peter Wu authored and David S. Miller committed Jul 18, 2012
1 parent ebbe21d commit 54d0c33
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: 02756ed4a79f15e4f265c1f6fbc634ce9966f153
refs/heads/master: ed36d7b2578e4235d7c281304c14e4085f286236
14 changes: 14 additions & 0 deletions trunk/drivers/net/ethernet/jme.c
Original file line number Diff line number Diff line change
Expand Up @@ -2743,6 +2743,17 @@ jme_set_features(struct net_device *netdev, netdev_features_t features)
return 0;
}

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

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

static int
jme_nway_reset(struct net_device *netdev)
{
Expand Down Expand Up @@ -2944,6 +2955,9 @@ static const struct net_device_ops jme_netdev_ops = {
.ndo_tx_timeout = jme_tx_timeout,
.ndo_fix_features = jme_fix_features,
.ndo_set_features = jme_set_features,
#ifdef CONFIG_NET_POLL_CONTROLLER
.ndo_poll_controller = jme_netpoll,
#endif
};

static int __devinit
Expand Down

0 comments on commit 54d0c33

Please sign in to comment.