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

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

diff -u --recursive --new-file v2.1.35/linux/drivers/net/atp.c linux/drivers/net/atp.c
@@ -96,6 +96,7 @@
 #include <asm/io.h>
 #include <asm/dma.h>
 #include <linux/errno.h>
+#include <linux/init.h>
 
 #include <linux/netdevice.h>
 #include <linux/etherdevice.h>
@@ -149,8 +150,8 @@
    If dev->base_addr == 2, allocate space for the device and return success
    (detachable devices only).
    */
-int
-atp_init(struct device *dev)
+__initfunc(int
+atp_init(struct device *dev))
 {
 	int *port, ports[] = {0x378, 0x278, 0x3bc, 0};
 	int base_addr = dev->base_addr;
@@ -172,7 +173,7 @@
 	return ENODEV;
 }
 
-static int atp_probe1(struct device *dev, short ioaddr)
+__initfunc(static int atp_probe1(struct device *dev, short ioaddr))
 {
 	int saved_ctrl_reg, status;
 
@@ -258,7 +259,7 @@
 }
 
 /* Read the station address PROM, usually a word-wide EEPROM. */
-static void get_node_ID(struct device *dev)
+__initfunc(static void get_node_ID(struct device *dev))
 {
 	short ioaddr = dev->base_addr;
 	int sa_offset = 0;
@@ -290,7 +291,7 @@
  * DO :	 _________X_______X
  */
 
-static unsigned short eeprom_op(short ioaddr, unsigned int cmd)
+__initfunc(static unsigned short eeprom_op(short ioaddr, unsigned int cmd))
 {
 	unsigned eedata_out = 0;
 	int num_bits = EE_CMD_SIZE;

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