1.3.73 EtherExpress driver typos

Philip Blundell (pjb27@cam.ac.uk)
Thu, 14 Mar 1996 14:10:30 +0000 (GMT)


I made a couple of goofs in the module code for eexpress.c in 1.3.73.

This patch (from Harald Koenig, koenig@tat.physik.uni-tuebingen.de)
should let you compile without errors. Sorry about that.

*** /soft/linux/drivers/net/eexpress.c Wed Mar 13 22:45:43 1996
--- /linux/drivers/net/eexpress.c Thu Mar 14 01:38:15 1996
***************
*** 1224,1231 ****
0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, express_probe
};

! int irq[MAX_EEXP_CARDS] = {0, };
! int io[MAX_EEXP_CARDS] = {0, };

/* Ideally the user would give us io=, irq= for every card. If any parameters
* are specified, we verify and then use them. If no parameters are given, we
--- 1224,1231 ----
0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, express_probe
};

! int irq[EEXP_MAX_CARDS] = {0, };
! int io[EEXP_MAX_CARDS] = {0, };

/* Ideally the user would give us io=, irq= for every card. If any parameters
* are specified, we verify and then use them. If no parameters are given, we
***************
*** 1261,1267 ****
for (this_dev = 0; this_dev < EEXP_MAX_CARDS; this_dev++) {
struct device *dev = &dev_eexp[this_dev];
if (dev->priv != NULL) {
! kfree_s(dev->priv. sizeof(struct net_local));
dev->priv = NULL;
release_region(dev->base_addr, EEXP_IO_EXTENT);
unregister_netdev(dev);
--- 1261,1267 ----
for (this_dev = 0; this_dev < EEXP_MAX_CARDS; this_dev++) {
struct device *dev = &dev_eexp[this_dev];
if (dev->priv != NULL) {
! kfree_s(dev->priv, sizeof(struct net_local));
dev->priv = NULL;
release_region(dev->base_addr, EEXP_IO_EXTENT);
unregister_netdev(dev);

P.