patch-2.4.20 linux-2.4.20/drivers/net/pcmcia/nmclan_cs.c

Next file: linux-2.4.20/drivers/net/pcmcia/pcnet_cs.c
Previous file: linux-2.4.20/drivers/net/pcmcia/ibmtr_cs.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.19/drivers/net/pcmcia/nmclan_cs.c linux-2.4.20/drivers/net/pcmcia/nmclan_cs.c
@@ -437,8 +437,8 @@
 static struct net_device_stats *mace_get_stats(struct net_device *dev);
 static int mace_rx(struct net_device *dev, unsigned char RxCnt);
 static void restore_multicast_list(struct net_device *dev);
-
 static void set_multicast_list(struct net_device *dev);
+static int mace_ioctl(struct net_device *dev, struct ifreq *rq, int cmd);
 
 static dev_link_t *nmclan_attach(void);
 static void nmclan_detach(dev_link_t *);
@@ -520,6 +520,7 @@
     dev->set_config = &mace_config;
     dev->get_stats = &mace_get_stats;
     dev->set_multicast_list = &set_multicast_list;
+    dev->do_ioctl = &mace_ioctl;
     ether_setup(dev);
     dev->open = &mace_open;
     dev->stop = &mace_close;
@@ -1057,7 +1058,7 @@
 	return -EOPNOTSUPP;
 }
 
-static int smc91c92_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
+static int mace_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
 {
 	switch (cmd) {
 	case SIOCETHTOOL:

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)