In kernel <= 2.6.28 the member napi_list in struct net_device is only
availabe if CONFIG_NETPOLL is set. We should initialize it only if it
is available.
This should fix the problem reported by Philip.
This should also go into stable.
CC: philipp_subx@redfish-solutions.com
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
/* initialize the ref count */
atomic_set(&dev->refcnt, 1);
+#ifdef CONFIG_NETPOLL
/* NAPI wants this */
INIT_LIST_HEAD(&dev->napi_list);
+#endif
/* a dummy interface is started by default */
set_bit(__LINK_STATE_PRESENT, &dev->state);