From: Li Yang Date: Fri, 12 Oct 2007 13:53:51 +0000 (+0800) Subject: gianfar: Fix compile regression caused by bea3348e X-Git-Tag: 2.1b_release~24391^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=94e8cc35bc300ccae91b08587029291d1ca001d6;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git gianfar: Fix compile regression caused by bea3348e Signed-off-by: Li Yang Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c index 0db5e6f..2b758fa 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);