diff options
author | Li Yang <leoli@freescale.com> | 2007-10-12 21:53:51 +0800 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-10-15 14:41:34 -0400 |
commit | 94e8cc35bc300ccae91b08587029291d1ca001d6 (patch) | |
tree | 171d93e8a178b63bf9ebe8d23b0cb63dbd827676 /drivers/net | |
parent | 25b31cb118f399e9996ed7a3766b86c69a6bb07e (diff) | |
download | blackbird-op-linux-94e8cc35bc300ccae91b08587029291d1ca001d6.tar.gz blackbird-op-linux-94e8cc35bc300ccae91b08587029291d1ca001d6.zip |
gianfar: Fix compile regression caused by bea3348e
Signed-off-by: Li Yang <leoli@freescale.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/gianfar.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c index 0db5e6fabe73..2b758fa334d3 100644 --- a/drivers/net/gianfar.c +++ b/drivers/net/gianfar.c @@ -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 @@ -931,6 +933,7 @@ tx_skb_fail: /* 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); |