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
d02d0adf
Commit
d02d0adf
authored
Apr 07, 2003
by
Zwane Mwaikambo
Committed by
Linus Torvalds
Apr 07, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] SET_MODULE_OWNER for tulip_core
Tested with a pcmcia tulip
parent
c5df32b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
drivers/net/tulip/tulip_core.c
drivers/net/tulip/tulip_core.c
+2
-6
No files found.
drivers/net/tulip/tulip_core.c
View file @
d02d0adf
...
...
@@ -485,12 +485,9 @@ tulip_open(struct net_device *dev)
struct
tulip_private
*
tp
=
(
struct
tulip_private
*
)
dev
->
priv
;
#endif
int
retval
;
MOD_INC_USE_COUNT
;
if
((
retval
=
request_irq
(
dev
->
irq
,
&
tulip_interrupt
,
SA_SHIRQ
,
dev
->
name
,
dev
)))
{
MOD_DEC_USE_COUNT
;
if
((
retval
=
request_irq
(
dev
->
irq
,
&
tulip_interrupt
,
SA_SHIRQ
,
dev
->
name
,
dev
)))
return
retval
;
}
tulip_init_ring
(
dev
);
...
...
@@ -823,8 +820,6 @@ static int tulip_close (struct net_device *dev)
tp
->
tx_buffers
[
i
].
mapping
=
0
;
}
MOD_DEC_USE_COUNT
;
return
0
;
}
...
...
@@ -1361,6 +1356,7 @@ static int __devinit tulip_init_one (struct pci_dev *pdev,
return
-
ENOMEM
;
}
SET_MODULE_OWNER
(
dev
);
if
(
pci_resource_len
(
pdev
,
0
)
<
tulip_tbl
[
chip_idx
].
io_size
)
{
printk
(
KERN_ERR
PFX
"%s: I/O region (0x%lx@0x%lx) too small, "
"aborting
\n
"
,
pdev
->
slot_name
,
...
...
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