Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
29d1408f
Commit
29d1408f
authored
May 11, 2002
by
Kasper Dupont
Committed by
Jeff Garzik
May 11, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix oops-able situation in 3c509 net driver
by removing __init marker from read_eeprom()
parent
1f0813ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
drivers/net/3c509.c
drivers/net/3c509.c
+1
-1
No files found.
drivers/net/3c509.c
View file @
29d1408f
...
@@ -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. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment