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
nexedi
linux
Commits
15c5b18c
Commit
15c5b18c
authored
May 26, 2003
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Switch lanmedia driver to initcalls.
parent
5c0f9cc7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
drivers/net/setup.c
drivers/net/setup.c
+0
-4
drivers/net/wan/lmc/lmc_main.c
drivers/net/wan/lmc/lmc_main.c
+5
-5
No files found.
drivers/net/setup.c
View file @
15c5b18c
...
...
@@ -15,7 +15,6 @@ extern int scc_enet_init(void);
extern
int
fec_enet_init
(
void
);
extern
int
sdla_setup
(
void
);
extern
int
sdla_c_setup
(
void
);
extern
int
lmc_setup
(
void
);
/*
* Devices in this list must do new style probing. That is they must
...
...
@@ -44,9 +43,6 @@ static struct net_probe pci_probes[] __initdata = {
#endif
#if defined(CONFIG_FEC_ENET)
{
fec_enet_init
,
0
},
#endif
#if defined(CONFIG_LANMEDIA)
{
lmc_setup
,
0
},
#endif
{
NULL
,
0
},
};
...
...
drivers/net/wan/lmc/lmc_main.c
View file @
15c5b18c
...
...
@@ -1965,9 +1965,7 @@ static struct net_device_stats *lmc_get_stats (struct net_device *dev) /*fold00*
return
(
struct
net_device_stats
*
)
&
sc
->
stats
;
}
#ifdef MODULE
int
init_module
(
void
)
/*fold00*/
static
int
__init
init_lmc
(
void
)
{
printk
(
"lmc: module loaded
\n
"
);
...
...
@@ -1978,7 +1976,7 @@ int init_module (void) /*fold00*/
return
0
;
}
void
cleanup_module
(
void
)
/*fold00*/
static
void
__exit
exit_lmc
(
void
)
{
struct
net_device
*
dev
,
*
next
;
lmc_softc_t
*
sc
;
...
...
@@ -2020,7 +2018,9 @@ void cleanup_module (void) /*fold00*/
Lmc_root_dev
=
NULL
;
printk
(
"lmc module unloaded
\n
"
);
}
#endif
module_init
(
init_lmc
);
module_exit
(
exit_lmc
);
unsigned
lmc_mii_readreg
(
lmc_softc_t
*
const
sc
,
unsigned
devaddr
,
unsigned
regno
)
/*fold00*/
{
...
...
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