Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213849
b: refs/heads/master
c: 357e8b5
h: refs/heads/master
i:
  213847: 9a8c6f3
v: v3
  • Loading branch information
Michal Simek authored and David S. Miller committed Aug 19, 2010
1 parent fa61b0c commit f1ea845
Show file tree
Hide file tree
Showing 2 changed files with 14 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: 6f0bee16d0840c272229f2038a23a9a02dfc803d
refs/heads/master: 357e8b5f723ba9e1d0a0f8ffb1361d607e43e19a
13 changes: 13 additions & 0 deletions trunk/drivers/net/xilinx_emaclite.c
Original file line number Diff line number Diff line change
Expand Up @@ -1269,13 +1269,26 @@ static int __devexit xemaclite_of_remove(struct platform_device *of_dev)
return 0;
}

#ifdef CONFIG_NET_POLL_CONTROLLER
static void
xemaclite_poll_controller(struct net_device *ndev)
{
disable_irq(ndev->irq);
xemaclite_interrupt(ndev->irq, ndev);
enable_irq(ndev->irq);
}
#endif

static struct net_device_ops xemaclite_netdev_ops = {
.ndo_open = xemaclite_open,
.ndo_stop = xemaclite_close,
.ndo_start_xmit = xemaclite_send,
.ndo_set_mac_address = xemaclite_set_mac_address,
.ndo_tx_timeout = xemaclite_tx_timeout,
.ndo_get_stats = xemaclite_get_stats,
#ifdef CONFIG_NET_POLL_CONTROLLER
.ndo_poll_controller = xemaclite_poll_controller,
#endif
};

/* Match table for OF platform binding */
Expand Down

0 comments on commit f1ea845

Please sign in to comment.