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

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

diff -u --recursive --new-file v2.1.35/linux/drivers/net/ltpc.c linux/drivers/net/ltpc.c
@@ -201,6 +201,7 @@
 #include <asm/bitops.h>
 #include <asm/dma.h>
 #include <linux/errno.h>
+#include <linux/init.h>
 
 #include <linux/netdevice.h>
 #include <linux/etherdevice.h>
@@ -956,12 +957,12 @@
 
 static unsigned short irqhitmask;
 
-static void lt_probe_handler(int irq, void *dev_id, struct pt_regs *reg_ptr)
+__initfunc(static void lt_probe_handler(int irq, void *dev_id, struct pt_regs *reg_ptr))
 {
 	irqhitmask |= 1<<irq;
 }
 
-int ltpc_probe(struct device *dev)
+__initfunc(int ltpc_probe(struct device *dev))
 {
 	int err;
 	unsigned char dma=0;

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