2.0.37 patch for drivers/net/setup.c

Nick Holloway (Nick.Holloway@alfie.demon.co.uk)
12 Nov 1999 08:30:24 -0000


Others have reported this problem as a compilation failure with
CONFIG_DUMMY. Looks like some simple cut'n'paste breakage.

Completed untested, but obviously correct :-)

--- linux-2.3/drivers/net/setup.c~ Fri Nov 12 08:26:29 1999
+++ linux-2.3/drivers/net/setup.c Fri Nov 12 08:27:49 1999
@@ -309,7 +309,7 @@
static struct net_device dummy_dev = {
"dummy" __PAD5, 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NULL, dummy_init,
};
- register_netdev(&sb1000_dev);
+ register_netdev(&dummy_dev);
}
#endif
#ifdef CONFIG_EQUALIZER
@@ -325,7 +325,7 @@
NULL, /* next device */
eql_init /* set up the rest */
};
- register_netdev(&sb1000_dev);
+ register_netdev(&eql_dev);
}
#endif
#ifdef CONFIG_APBIF
@@ -335,7 +335,7 @@
{
"bif" __PAD3, 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NULL, bif_init
};
- register_netdev(&sb1000_dev);
+ register_netdev(&bif_dev);
}
#endif
#ifdef CONFIG_NET_SB1000

-- 
 `O O'  | Nick.Holloway@alfie.demon.co.uk
// ^ \\ | http://www.alfie.demon.co.uk/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/