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

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

diff -u --recursive --new-file v2.1.35/linux/drivers/net/sunqe.c linux/drivers/net/sunqe.c
@@ -21,6 +21,7 @@
 #include <linux/in.h>
 #include <linux/malloc.h>
 #include <linux/string.h>
+#include <linux/init.h>
 #include <asm/system.h>
 #include <asm/bitops.h>
 #include <asm/io.h>
@@ -902,7 +903,7 @@
 }
 
 /* Four QE's per QEC card. */
-static int qec_ether_init(struct device *dev, struct linux_sbus_device *sdev)
+static inline int qec_ether_init(struct device *dev, struct linux_sbus_device *sdev)
 {
 	static unsigned version_printed = 0;
 	struct device *qe_devs[4];
@@ -1149,7 +1150,7 @@
 	return res;
 }
 
-int qec_probe(struct device *dev)
+__initfunc(int qec_probe(struct device *dev))
 {
 	struct linux_sbus *bus;
 	struct linux_sbus_device *sdev = 0;

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