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
73649d81
Commit
73649d81
authored
Sep 18, 2002
by
kafai0928@yahoo.com
Committed by
Jeff Garzik
Sep 18, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use SET_MODULE_OWNER in eepro100 net driver instead of
MOD_{INC,DEC}_USE_COUNT, eliminating a small race
parent
87c4764d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
drivers/net/eepro100.c
drivers/net/eepro100.c
+2
-6
No files found.
drivers/net/eepro100.c
View file @
73649d81
...
...
@@ -658,6 +658,8 @@ static int __devinit speedo_found1(struct pci_dev *pdev,
return
-
1
;
}
SET_MODULE_OWNER
(
dev
);
if
(
dev
->
mem_start
>
0
)
option
=
dev
->
mem_start
;
else
if
(
card_idx
>=
0
&&
options
[
card_idx
]
>=
0
)
...
...
@@ -919,7 +921,6 @@ static int mdio_write(long ioaddr, int phy_id, int location, int value)
return
val
&
0xffff
;
}
static
int
speedo_open
(
struct
net_device
*
dev
)
{
...
...
@@ -930,8 +931,6 @@ speedo_open(struct net_device *dev)
if
(
speedo_debug
>
1
)
printk
(
KERN_DEBUG
"%s: speedo_open() irq %d.
\n
"
,
dev
->
name
,
dev
->
irq
);
MOD_INC_USE_COUNT
;
pci_set_power_state
(
sp
->
pdev
,
0
);
/* Set up the Tx queue early.. */
...
...
@@ -945,7 +944,6 @@ speedo_open(struct net_device *dev)
/* .. we can safely take handler calls during init. */
retval
=
request_irq
(
dev
->
irq
,
&
speedo_interrupt
,
SA_SHIRQ
,
dev
->
name
,
dev
);
if
(
retval
)
{
MOD_DEC_USE_COUNT
;
return
retval
;
}
...
...
@@ -1886,8 +1884,6 @@ speedo_close(struct net_device *dev)
pci_set_power_state
(
sp
->
pdev
,
2
);
MOD_DEC_USE_COUNT
;
return
0
;
}
...
...
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