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
954bd821
Commit
954bd821
authored
Nov 25, 2002
by
Alan Cox
Committed by
Linus Torvalds
Nov 25, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] make ewrk3/depca work again
parent
a1ac7138
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
22 deletions
+23
-22
drivers/net/depca.c
drivers/net/depca.c
+0
-2
drivers/net/ewrk3.c
drivers/net/ewrk3.c
+23
-20
No files found.
drivers/net/depca.c
View file @
954bd821
...
...
@@ -463,8 +463,6 @@ static int load_packet(struct net_device *dev, struct sk_buff *skb);
static
void
depca_dbg_open
(
struct
net_device
*
dev
);
#ifdef MODULE
int
init_module
(
void
);
void
cleanup_module
(
void
);
static
int
autoprobed
=
1
,
loading_module
=
1
;
# else
static
u_char
de1xx_irq
[]
__initdata
=
{
2
,
3
,
4
,
5
,
7
,
9
,
0
};
...
...
drivers/net/ewrk3.c
View file @
954bd821
...
...
@@ -332,8 +332,6 @@ static struct net_device *insert_device(struct net_device *dev, u_long iobase, i
#ifdef MODULE
int
init_module
(
void
);
void
cleanup_module
(
void
);
static
int
autoprobed
=
1
,
loading_module
=
1
;
#else
...
...
@@ -2083,7 +2081,25 @@ MODULE_PARM(irq, "0-21i");
MODULE_PARM_DESC
(
io
,
"EtherWORKS 3 I/O base address(es)"
);
MODULE_PARM_DESC
(
irq
,
"EtherWORKS 3 IRQ number(s)"
);
int
init_module
(
void
)
static
void
ewrk3_exit_module
(
void
)
{
int
i
;
for
(
i
=
0
;
i
<
ndevs
;
i
++
)
{
unregister_netdev
(
ewrk3_devs
[
i
]);
if
(
ewrk3_devs
[
i
]
->
priv
)
{
kfree
(
ewrk3_devs
[
i
]
->
priv
);
ewrk3_devs
[
i
]
->
priv
=
NULL
;
}
ewrk3_devs
[
i
]
->
irq
=
0
;
release_region
(
ewrk3_devs
[
i
]
->
base_addr
,
EWRK3_TOTAL_SIZE
);
kfree
(
ewrk3_devs
[
i
]);
ewrk3_devs
[
i
]
=
NULL
;
}
}
static
int
ewrk3_init_module
(
void
)
{
int
i
=
0
;
...
...
@@ -2107,27 +2123,14 @@ int init_module(void)
return
ndevs
?
0
:
-
EIO
;
error:
cleanup
_module
();
ewrk3_exit
_module
();
return
-
ENOMEM
;
}
void
cleanup_module
(
void
)
{
int
i
;
for
(
i
=
0
;
i
<
ndevs
;
i
++
)
{
unregister_netdev
(
ewrk3_devs
[
i
]);
if
(
ewrk3_devs
[
i
]
->
priv
)
{
kfree
(
ewrk3_devs
[
i
]
->
priv
);
ewrk3_devs
[
i
]
->
priv
=
NULL
;
}
ewrk3_devs
[
i
]
->
irq
=
0
;
release_region
(
ewrk3_devs
[
i
]
->
base_addr
,
EWRK3_TOTAL_SIZE
);
kfree
(
ewrk3_devs
[
i
]);
ewrk3_devs
[
i
]
=
NULL
;
}
}
/* Hack for breakage in new module stuff */
module_exit
(
ewrk3_exit_module
);
module_init
(
ewrk3_init_module
);
#endif
/* MODULE */
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