patch-2.1.36 linux/drivers/net/wd.c
Next file: linux/drivers/net/x25_asy.c
Previous file: linux/drivers/net/wavelan.p.h
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Tue Apr 22 22:42:50 1997
- Orig file:
v2.1.35/linux/drivers/net/wd.c
- Orig date:
Tue Dec 31 00:30:05 1996
diff -u --recursive --new-file v2.1.35/linux/drivers/net/wd.c linux/drivers/net/wd.c
@@ -33,6 +33,7 @@
#include <linux/sched.h>
#include <linux/errno.h>
#include <linux/string.h>
+#include <linux/init.h>
#include <asm/io.h>
#include <asm/system.h>
@@ -41,7 +42,7 @@
#include "8390.h"
/* A zero-terminated list of I/O addresses to be probed. */
-static unsigned int wd_portlist[] =
+static unsigned int wd_portlist[] __initdata =
{0x300, 0x280, 0x380, 0x240, 0};
int wd_probe(struct device *dev);
@@ -85,7 +86,7 @@
{"wd", wd_probe1, WD_IO_EXTENT, wd_portlist};
#else
-int wd_probe(struct device *dev)
+__initfunc(int wd_probe(struct device *dev))
{
int i;
int base_addr = dev ? dev->base_addr : 0;
@@ -107,7 +108,7 @@
}
#endif
-int wd_probe1(struct device *dev, int ioaddr)
+__initfunc(int wd_probe1(struct device *dev, int ioaddr))
{
int i;
int checksum = 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov