2001-04-09 12:13:27

by Andrey Panin

[permalink] [raw]
Subject: [PATCH] net drivers: missing __init's

Hi all,

attached patches add missing __init and (__devinit) to some network drivers:
at1700.c, eepro.c, epic100.c, hamachi.c, sis900.c,
tokenring/abyss.c, tokenring/tmsisa.c, tokenring/tmspci.c.

Best regards.

--
Andrey Panin | Embedded systems software engineer
[email protected] | PGP key: http://www.orbita1.ru/~pazke/AndreyPanin.asc


Attachments:
patch-at1700 (445.00 B)
patch-eepro (791.00 B)
patch-epic100 (445.00 B)
patch-hamachi (914.00 B)
patch-sis900 (619.00 B)
patch-abyss (512.00 B)
patch-tmsisa (836.00 B)
patch-tmspci (1.00 kB)
(No filename) (232.00 B)
Download all attachments

2001-04-09 12:33:43

by Andrzej Krzysztofowicz

[permalink] [raw]
Subject: Re: [PATCH] net drivers: missing __init's

"Andrey Panin wrote:"
>
> attached patches add missing __init and (__devinit) to some network drivers:
> at1700.c, eepro.c, epic100.c, hamachi.c, sis900.c,=20
> tokenring/abyss.c, tokenring/tmsisa.c, tokenring/tmspci.c.
>

> diff -ur -x *.o -x *.flags /linux.vanilla/drivers/net/tokenring/tmsisa.c /l=
> inux/drivers/net/tokenring/tmsisa.c
> --- /linux.vanilla/drivers/net/tokenring/tmsisa.c Mon Apr 2 15:45:22 2001
> +++ /linux/drivers/net/tokenring/tmsisa.c Sun Apr 8 18:18:51 2001
> @@ -19,7 +19,7 @@
> * TODO:
> * 1. Add support for Proteon TR ISA adapters (1392, 1392+)
> */
> -static const char *version = "tmsisa.c: v1.00 14/01/2001 by Jochen Friedrich\n";
> +static const char version[] __initdata = "tmsisa.c: v1.00 14/01/2001 by Jochen Friedrich\n";

You should move this line after
#include <linux/init.h>

> #include <linux/module.h>
> #include <linux/kernel.h>

Andrzej