patch-2.1.36 linux/drivers/net/pcnet32.c
Next file: linux/drivers/net/pi2.c
Previous file: linux/drivers/net/ni65.c
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Tue Apr 22 22:42:49 1997
- Orig file:
v2.1.35/linux/drivers/net/pcnet32.c
- Orig date:
Fri Apr 4 08:52:21 1997
diff -u --recursive --new-file v2.1.35/linux/drivers/net/pcnet32.c linux/drivers/net/pcnet32.c
@@ -26,6 +26,7 @@
#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/bios32.h>
+#include <linux/init.h>
#include <asm/bitops.h>
#include <asm/io.h>
#include <asm/dma.h>
@@ -34,7 +35,7 @@
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
-static unsigned int pcnet32_portlist[] = {0x300, 0x320, 0x340, 0x360, 0};
+static unsigned int pcnet32_portlist[] __initdata = {0x300, 0x320, 0x340, 0x360, 0};
#ifdef PCNET32_DEBUG
static int pcnet32_debug = PCNET32_DEBUG;
@@ -168,7 +169,7 @@
-int pcnet32_probe (struct device *dev)
+__initfunc(int pcnet32_probe (struct device *dev))
{
unsigned int ioaddr = dev ? dev->base_addr: 0;
unsigned char irq_line = dev ? dev->irq : 0;
@@ -246,7 +247,7 @@
/* pcnet32_probe1 */
-int pcnet32_probe1(struct device *dev, unsigned int ioaddr, unsigned char irq_line, int shared)
+__initfunc(static int pcnet32_probe1(struct device *dev, unsigned int ioaddr, unsigned char irq_line, int shared))
{
struct pcnet32_private *lp;
int i;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov