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

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

diff -u --recursive --new-file v2.1.35/linux/drivers/net/ac3200.c linux/drivers/net/ac3200.c
@@ -25,6 +25,7 @@
 #include <linux/string.h>
 #include <linux/netdevice.h>
 #include <linux/etherdevice.h>
+#include <linux/init.h>
 
 #include <asm/system.h>
 #include <asm/io.h>
@@ -54,7 +55,7 @@
 								 */
 
 /* Decoding of the configuration register. */
-static unsigned char config2irqmap[8] = {15, 12, 11, 10, 9, 7, 5, 3};
+static unsigned char config2irqmap[8] __initdata = {15, 12, 11, 10, 9, 7, 5, 3};
 static int addrmap[8] =
 {0xFF0000, 0xFE0000, 0xFD0000, 0xFFF0000, 0xFFE0000, 0xFFC0000,  0xD0000, 0 };
 static const char *port_name[4] = { "10baseT", "invalid", "AUI", "10base2"};
@@ -88,7 +89,7 @@
 	or the unique value in the station address PROM.
 	*/
 
-int ac3200_probe(struct device *dev)
+__initfunc(int ac3200_probe(struct device *dev))
 {
 	unsigned short ioaddr = dev->base_addr;
 
@@ -111,7 +112,7 @@
 	return ENODEV;
 }
 
-static int ac_probe1(int ioaddr, struct device *dev)
+__initfunc(static int ac_probe1(int ioaddr, struct device *dev))
 {
 	int i;
 

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