patch-2.2.18 linux/drivers/net/3c515.c
Next file: linux/drivers/net/3c523.c
Previous file: linux/drivers/net/3c509.c
Back to the patch index
Back to the overall index
- Lines: 44
- Date:
Mon Sep 11 17:58:02 2000
- Orig file:
v2.2.17/drivers/net/3c515.c
- Orig date:
Sun Jun 11 21:44:14 2000
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/drivers/net/3c515.c linux/drivers/net/3c515.c
@@ -62,6 +62,7 @@
#define NEW_MULTICAST
#include <linux/delay.h>
+#include <linux/init.h>
/* Kernel version compatibility functions. */
#define RUN_AT(x) (jiffies + (x))
@@ -399,7 +400,7 @@
}
#else
-int tc515_probe(struct device *dev)
+int __init tc515_probe(struct device *dev)
{
int cards_found = 0;
@@ -412,7 +413,7 @@
}
#endif /* not MODULE */
-static int vortex_scan(struct device *dev)
+static int __init vortex_scan(struct device *dev)
{
int cards_found = 0;
static int ioaddr = 0x100;
@@ -452,7 +453,7 @@
return cards_found;
}
-static struct device *vortex_found_device(struct device *dev, int ioaddr,
+static struct device * __init vortex_found_device(struct device *dev, int ioaddr,
int irq, int product_index,
int options)
{
@@ -517,7 +518,7 @@
return dev;
}
-static int vortex_probe1(struct device *dev)
+static int __init vortex_probe1(struct device *dev)
{
int ioaddr = dev->base_addr;
struct vortex_private *vp = (struct vortex_private *)dev->priv;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)