linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drivers/net/dl2k.c: missing __devinit's
@ 2002-04-16 10:24 Andrey Panin
  0 siblings, 0 replies; only message in thread
From: Andrey Panin @ 2002-04-16 10:24 UTC (permalink / raw)
  To: linux-kernel; +Cc: trivial


[-- Attachment #1.1: Type: text/plain, Size: 266 bytes --]


This patch adds missing __devinit modifiers for read_eeprom() and 
parse_eeprom() functions. Patch against 2.5.8. Compiles, but untested.

-- 
Andrey Panin            | Embedded systems software engineer
pazke@orbita1.ru        | PGP key: wwwkeys.eu.pgp.net

[-- Attachment #1.2: patch-dl2k-devinit --]
[-- Type: text/plain, Size: 533 bytes --]

diff -urN -X /usr/share/dontdiff linux.vanilla/drivers/net/dl2k.c linux/drivers/net/dl2k.c
--- linux.vanilla/drivers/net/dl2k.c	Sun Apr 14 23:30:38 2002
+++ linux/drivers/net/dl2k.c	Sun Apr 14 23:57:54 2002
@@ -327,7 +327,7 @@
 	return 0;
 }
 
-int
+static int __devinit
 parse_eeprom (struct net_device *dev)
 {
 	int i, j;
@@ -1275,7 +1275,7 @@
 #define EEP_READ 0x0200
 #define EEP_BUSY 0x8000
 /* Read the EEPROM word */
-int
+static int __devinit
 read_eeprom (long ioaddr, int eep_addr)
 {
 	int i = 1000;

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-04-16 10:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-16 10:24 [PATCH] drivers/net/dl2k.c: missing __devinit's Andrey Panin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).