patch-2.1.36 linux/drivers/net/lance.c
Next file: linux/drivers/net/lapbether.c
Previous file: linux/drivers/net/ibmtr.c
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Tue Apr 22 22:42:49 1997
- Orig file:
v2.1.35/linux/drivers/net/lance.c
- Orig date:
Thu Mar 27 14:40:04 1997
diff -u --recursive --new-file v2.1.35/linux/drivers/net/lance.c linux/drivers/net/lance.c
@@ -46,6 +46,7 @@
#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/bios32.h>
+#include <linux/init.h>
#include <asm/bitops.h>
#include <asm/io.h>
#include <asm/dma.h>
@@ -54,7 +55,7 @@
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
-static unsigned int lance_portlist[] = {0x300, 0x320, 0x340, 0x360, 0};
+static unsigned int lance_portlist[] __initdata = {0x300, 0x320, 0x340, 0x360, 0};
void lance_probe1(int ioaddr);
#ifdef HAVE_DEVLIST
@@ -308,7 +309,7 @@
before the memory management system is started, and thus well before the
other probes. */
-int lance_init(void)
+__initfunc(int lance_init(void))
{
int *port;
@@ -371,7 +372,7 @@
return 0;
}
-void lance_probe1(int ioaddr)
+__initfunc(void lance_probe1(int ioaddr))
{
struct device *dev;
struct lance_private *lp;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov