Commit 29d1408f authored by Kasper Dupont's avatar Kasper Dupont Committed by Jeff Garzik

Fix oops-able situation in 3c509 net driver

by removing __init marker from read_eeprom()
parent 1f0813ea
...@@ -567,7 +567,7 @@ int __init el3_probe(struct net_device *dev, int card_idx) ...@@ -567,7 +567,7 @@ int __init el3_probe(struct net_device *dev, int card_idx)
/* Read a word from the EEPROM using the regular EEPROM access register. /* Read a word from the EEPROM using the regular EEPROM access register.
Assume that we are in register window zero. Assume that we are in register window zero.
*/ */
static ushort __init read_eeprom(int ioaddr, int index) static ushort read_eeprom(int ioaddr, int index)
{ {
outw(EEPROM_READ + index, ioaddr + 10); outw(EEPROM_READ + index, ioaddr + 10);
/* Pause for at least 162 us. for the read to take place. */ /* Pause for at least 162 us. for the read to take place. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment