[PATCH] drivers/net/eepro100: missing __devinit

Andrey Panin (pazke@orbita1.ru)
Tue, 16 Apr 2002 15:17:43 +0400


--FN+gV9K+162wdwwF
Content-Type: multipart/mixed; boundary="WChQLJJJfbwij+9x"
Content-Disposition: inline

--WChQLJJJfbwij+9x
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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

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

--WChQLJJJfbwij+9x
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch-eepro100-devinit
Content-Transfer-Encoding: quoted-printable

diff -urN -X /usr/share/dontdiff linux.vanilla/drivers/net/eepro100.c linux=
/drivers/net/eepro100.c
--- linux.vanilla/drivers/net/eepro100.c Sun Apr 14 23:30:39 2002
+++ linux/drivers/net/eepro100.c Sun Apr 14 23:46:30 2002
@@ -632,7 +632,7 @@
return -ENODEV;
}
=20
-static int speedo_found1(struct pci_dev *pdev,
+static int __devinit speedo_found1(struct pci_dev *pdev,
long ioaddr, int card_idx, int acpi_idle_state)
{
struct net_device *dev;
@@ -866,7 +866,7 @@
interval for serial EEPROM. However, it looks like that there is an
additional requirement dictating larger udelay's in the code below.
2000/05/24 SAW */
-static int do_eeprom_cmd(long ioaddr, int cmd, int cmd_len)
+static int __devinit do_eeprom_cmd(long ioaddr, int cmd, int cmd_len)
{
unsigned retval =3D 0;
long ee_addr =3D ioaddr + SCBeeprom;

--WChQLJJJfbwij+9x--

--FN+gV9K+162wdwwF
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8vAhXBm4rlNOo3YgRAtC7AJ4qlie/S1wf0K3BhBIx+aPKP6znBwCgimM6
g6lrehAa1eSTrdb76U88BNU=
=Q0Eu
-----END PGP SIGNATURE-----

--FN+gV9K+162wdwwF--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/