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
588e0a2d
Commit
588e0a2d
authored
Sep 21, 2003
by
Chas Williams
Committed by
David S. Miller
Sep 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ATM]: [eni] Correct way to prevent module unload (from shemminger@osdl.org).
parent
7a675c1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
13 deletions
+1
-13
drivers/atm/eni.c
drivers/atm/eni.c
+1
-13
No files found.
drivers/atm/eni.c
View file @
588e0a2d
...
@@ -2272,8 +2272,6 @@ static int __devinit eni_init_one(struct pci_dev *pci_dev,
...
@@ -2272,8 +2272,6 @@ static int __devinit eni_init_one(struct pci_dev *pci_dev,
DPRINTK
(
"eni_init_one
\n
"
);
DPRINTK
(
"eni_init_one
\n
"
);
MOD_INC_USE_COUNT
;
/* @@@ we don't support unloading yet */
if
(
pci_enable_device
(
pci_dev
))
{
if
(
pci_enable_device
(
pci_dev
))
{
error
=
-
EIO
;
error
=
-
EIO
;
goto
out0
;
goto
out0
;
...
@@ -2307,7 +2305,6 @@ static int __devinit eni_init_one(struct pci_dev *pci_dev,
...
@@ -2307,7 +2305,6 @@ static int __devinit eni_init_one(struct pci_dev *pci_dev,
out1:
out1:
kfree
(
eni_dev
);
kfree
(
eni_dev
);
out0:
out0:
MOD_DEC_USE_COUNT
;
/* @@@ we don't support unloading yet */
return
error
;
return
error
;
}
}
...
@@ -2351,16 +2348,7 @@ static int __init eni_init(void)
...
@@ -2351,16 +2348,7 @@ static int __init eni_init(void)
}
}
static
void
__exit
eni_cleanup
(
void
)
{
/*
* Well, there's no way to get rid of the driver yet, so we don't
* have to clean up, right ? :-)
*/
}
module_init
(
eni_init
);
module_init
(
eni_init
);
module_exit
(
eni_cleanup
);
/* @@@ since exit routine not defined, this module can not be unloaded */
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
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