Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69336
b: refs/heads/master
c: 94e8cc3
h: refs/heads/master
v: v3
  • Loading branch information
Li Yang authored and Jeff Garzik committed Oct 15, 2007
1 parent ddc9aab commit e2d0ad4
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 25b31cb118f399e9996ed7a3766b86c69a6bb07e
refs/heads/master: 94e8cc35bc300ccae91b08587029291d1ca001d6
3 changes: 3 additions & 0 deletions trunk/drivers/net/gianfar.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ static int gfar_probe(struct platform_device *pdev)
dev->hard_start_xmit = gfar_start_xmit;
dev->tx_timeout = gfar_timeout;
dev->watchdog_timeo = TX_TIMEOUT;
#ifdef CONFIG_GFAR_NAPI
netif_napi_add(dev, &priv->napi, gfar_poll, GFAR_DEV_WEIGHT);
#endif
#ifdef CONFIG_NET_POLL_CONTROLLER
dev->poll_controller = gfar_netpoll;
#endif
Expand Down Expand Up @@ -931,6 +933,7 @@ int startup_gfar(struct net_device *dev)
/* Returns 0 for success. */
static int gfar_enet_open(struct net_device *dev)
{
struct gfar_private *priv = netdev_priv(dev);
int err;

napi_enable(&priv->napi);
Expand Down

0 comments on commit e2d0ad4

Please sign in to comment.