2004-03-18 11:02:56

by Stelian Pop

[permalink] [raw]
Subject: [PATCH 2.6] netpoll for pcnet_cs

Hi,

This patch adds netpoll support to pcnet_cs. Tested with
the netconsole facility.

Please apply.

Stelian.

===== drivers/net/pcmcia/pcnet_cs.c 1.31 vs edited =====
--- 1.31/drivers/net/pcmcia/pcnet_cs.c Tue Feb 10 01:54:48 2004
+++ edited/drivers/net/pcmcia/pcnet_cs.c Wed Mar 17 12:21:28 2004
@@ -722,6 +722,10 @@
link->dev = &info->node;
link->state &= ~DEV_CONFIG_PENDING;

+#ifdef CONFIG_NET_POLL_CONTROLLER
+ dev->poll_controller = ei_poll;
+#endif
+
if (register_netdev(dev) != 0) {
printk(KERN_NOTICE "pcnet_cs: register_netdev() failed\n");
link->dev = NULL;
--
Stelian Pop <[email protected]>