patch-2.1.36 linux/drivers/net/atarilance.c

Next file: linux/drivers/net/atp.c
Previous file: linux/drivers/net/atari_pamsnet.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.35/linux/drivers/net/atarilance.c linux/drivers/net/atarilance.c
@@ -55,6 +55,7 @@
 #include <linux/errno.h>
 #include <linux/malloc.h>
 #include <linux/interrupt.h>
+#include <linux/init.h>
 
 #include <asm/setup.h>
 #include <asm/irq.h>
@@ -369,7 +370,7 @@
 }
 
 
-int atarilance_probe( struct device *dev )
+__initfunc(int atarilance_probe( struct device *dev ))
 
 {	int i;
 	static int found = 0;
@@ -392,7 +393,7 @@
 
 /* Derived from hwreg_present() in atari/config.c: */
 
-static int addr_accessible( volatile void *regp, int wordflag, int writeflag )
+__initfunc(static int addr_accessible( volatile void *regp, int wordflag, int writeflag ))
 
 {	int		ret;
 	long	flags;
@@ -442,8 +443,8 @@
 }
 
 
-static unsigned long lance_probe1( struct device *dev,
-								   struct lance_addr *init_rec )
+__initfunc(static unsigned long lance_probe1( struct device *dev,
+								   struct lance_addr *init_rec ))
 
 {	volatile unsigned short *memaddr =
 		(volatile unsigned short *)init_rec->memaddr;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov