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

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

diff -u --recursive --new-file v2.1.35/linux/drivers/net/ni52.c linux/drivers/net/ni52.c
@@ -114,6 +114,7 @@
 #include <linux/malloc.h>
 #include <linux/interrupt.h>
 #include <linux/delay.h>
+#include <linux/init.h>
 #include <asm/bitops.h>
 #include <asm/io.h>
 
@@ -359,7 +360,7 @@
 /**********************************************
  * probe the ni5210-card
  */
-int ni52_probe(struct device *dev)
+__initfunc(int ni52_probe(struct device *dev))
 {
 #ifndef MODULE
 	int *port;
@@ -410,7 +411,7 @@
 	return ENODEV;
 }
 
-static int ni52_probe1(struct device *dev,int ioaddr)
+__initfunc(static int ni52_probe1(struct device *dev,int ioaddr))
 {
 	int i,size;
 
@@ -455,7 +456,7 @@
 	else
 	{
 		static long memaddrs[] = { 0xc8000,0xca000,0xcc000,0xce000,0xd0000,0xd2000,
-															0xd4000,0xd6000,0xd8000,0xda000,0xdc000, 0 };
+					0xd4000,0xd6000,0xd8000,0xda000,0xdc000, 0 };
 		for(i=0;;i++)
 		{
 			if(!memaddrs[i]) {

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