patch-2.1.36 linux/drivers/net/3c509.c
Next file: linux/drivers/net/3c523.c
Previous file: linux/drivers/net/3c507.c
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Tue Apr 22 22:42:48 1997
- Orig file:
v2.1.35/linux/drivers/net/3c509.c
- Orig date:
Fri Apr 4 08:52:20 1997
diff -u --recursive --new-file v2.1.35/linux/drivers/net/3c509.c linux/drivers/net/3c509.c
@@ -48,6 +48,7 @@
#include <linux/skbuff.h>
#include <linux/config.h> /* for CONFIG_MCA */
#include <linux/delay.h> /* for udelay() */
+#include <linux/init.h>
#include <asm/bitops.h>
#include <asm/io.h>
@@ -132,7 +133,7 @@
-int el3_probe(struct device *dev)
+__initfunc(int el3_probe(struct device *dev))
{
short lrs_state = 0xff, i;
ushort ioaddr, irq, if_port;
@@ -312,7 +313,7 @@
/* Read a word from the EEPROM using the regular EEPROM access register.
Assume that we are in register window zero.
*/
-static ushort read_eeprom(short ioaddr, int index)
+__initfunc(static ushort read_eeprom(short ioaddr, int index))
{
outw(EEPROM_READ + index, ioaddr + 10);
/* Pause for at least 162 us. for the read to take place. */
@@ -321,7 +322,7 @@
}
/* Read a word from the EEPROM when in the ISA ID probe state. */
-static ushort id_read_eeprom(int index)
+__initfunc(static ushort id_read_eeprom(int index))
{
int bit, word = 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov