patch-2.3.10 linux/drivers/net/ibmtr.c
Next file: linux/drivers/net/irda/actisys.c
Previous file: linux/drivers/net/hydra.c
Back to the patch index
Back to the overall index
- Lines: 75
- Date:
Tue Jul 6 19:05:50 1999
- Orig file:
v2.3.9/linux/drivers/net/ibmtr.c
- Orig date:
Wed Jun 16 19:26:27 1999
diff -u --recursive --new-file v2.3.9/linux/drivers/net/ibmtr.c linux/drivers/net/ibmtr.c
@@ -138,11 +138,9 @@
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/errno.h>
-#include <linux/sched.h>
#include <linux/timer.h>
#include <linux/in.h>
#include <linux/ioport.h>
-#include <linux/errno.h>
#include <linux/string.h>
#include <linux/skbuff.h>
#include <linux/interrupt.h>
@@ -173,7 +171,7 @@
"ISA", "MCA", "ISA P&P"
};
-__initfunc(char *adapter_def(char type))
+char __init *adapter_def(char type)
{
switch (type)
{
@@ -223,7 +221,7 @@
static __u32 ibmtr_mem_base = 0xd0000;
-__initfunc(static void PrtChanID(char *pcid, short stride) )
+static void __init PrtChanID(char *pcid, short stride)
{
short i, j;
for (i=0, j=0; i<24; i++, j+=stride)
@@ -231,7 +229,7 @@
printk("\n");
}
-__initfunc(static void HWPrtChanID (__u32 pcid, short stride))
+static void __init HWPrtChanID (__u32 pcid, short stride)
{
short i, j;
for (i=0, j=0; i<24; i++, j+=stride)
@@ -252,7 +250,7 @@
* which references it.
*/
-__initfunc(int ibmtr_probe(struct device *dev))
+int __init ibmtr_probe(struct device *dev)
{
int i;
int base_addr = dev ? dev->base_addr : 0;
@@ -295,7 +293,7 @@
return -ENODEV;
}
-__initfunc(static int ibmtr_probe1(struct device *dev, int PIOaddr))
+static int __init ibmtr_probe1(struct device *dev, int PIOaddr)
{
unsigned char segment=0, intr=0, irq=0, i=0, j=0, cardpresent=NOTOK,temp=0;
__u32 t_mmio=0;
@@ -750,7 +748,7 @@
/* query the adapter for the size of shared RAM */
-__initfunc(static unsigned char get_sram_size(struct tok_info *adapt_info))
+static unsigned char __init get_sram_size(struct tok_info *adapt_info)
{
unsigned char avail_sram_code;
@@ -769,7 +767,7 @@
return 1<<((readb(adapt_info->mmio+ ACA_OFFSET + ACA_RW + RRR_ODD)>>2)+4);
}
-__initfunc(static int trdev_init(struct device *dev))
+static int __init trdev_init(struct device *dev)
{
struct tok_info *ti=(struct tok_info *)dev->priv;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)