patch-2.1.36 linux/drivers/net/smc-ultra.c
Next file: linux/drivers/net/smc9194.c
Previous file: linux/drivers/net/smc-mca.c
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/smc-ultra.c
- Orig date:
Mon Jan 13 22:58:19 1997
diff -u --recursive --new-file v2.1.35/linux/drivers/net/smc-ultra.c linux/drivers/net/smc-ultra.c
@@ -53,6 +53,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>
@@ -61,7 +62,7 @@
#include "8390.h"
/* A zero-terminated list of I/O addresses to be probed. */
-static unsigned int ultra_portlist[] =
+static unsigned int ultra_portlist[] __initdata =
{0x200, 0x220, 0x240, 0x280, 0x300, 0x340, 0x380, 0};
int ultra_probe(struct device *dev);
@@ -104,7 +105,7 @@
{"ultra", ultra_probe1, NETCARD_IO_EXTENT, netcard_portlist};
#else
-int ultra_probe(struct device *dev)
+__initfunc(int ultra_probe(struct device *dev))
{
int i;
int base_addr = dev ? dev->base_addr : 0;
@@ -126,7 +127,7 @@
}
#endif
-int ultra_probe1(struct device *dev, int ioaddr)
+__initfunc(int ultra_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