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
21cae4ab
Commit
21cae4ab
authored
May 22, 2003
by
Christoph Hellwig
Committed by
David S. Miller
May 22, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Convert madgemc to initcalls.
parent
e6ea968f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
27 deletions
+5
-27
drivers/net/setup.c
drivers/net/setup.c
+0
-10
drivers/net/tokenring/madgemc.c
drivers/net/tokenring/madgemc.c
+5
-17
No files found.
drivers/net/setup.c
View file @
21cae4ab
...
...
@@ -17,8 +17,6 @@ extern int sdla_setup(void);
extern
int
sdla_c_setup
(
void
);
extern
int
lmc_setup
(
void
);
extern
int
madgemc_probe
(
void
);
/*
* Devices in this list must do new style probing. That is they must
* allocate their own device objects and do their own bus scans.
...
...
@@ -50,14 +48,6 @@ static struct net_probe pci_probes[] __initdata = {
#if defined(CONFIG_LANMEDIA)
{
lmc_setup
,
0
},
#endif
/*
* Token Ring Drivers
*/
#ifdef CONFIG_MADGEMC
{
madgemc_probe
,
0
},
#endif
{
NULL
,
0
},
};
...
...
drivers/net/tokenring/madgemc.c
View file @
21cae4ab
...
...
@@ -63,7 +63,6 @@ struct madgemc_card {
static
struct
madgemc_card
*
madgemc_card_list
;
int
madgemc_probe
(
void
);
static
int
madgemc_open
(
struct
net_device
*
dev
);
static
int
madgemc_close
(
struct
net_device
*
dev
);
static
int
madgemc_chipset_init
(
struct
net_device
*
dev
);
...
...
@@ -152,7 +151,7 @@ static void madgemc_sifwritew(struct net_device *dev, unsigned short val, unsign
int
__init
madgemc_probe
(
void
)
static
int
__init
madgemc_probe
(
void
)
{
static
int
versionprinted
;
struct
net_device
*
dev
;
...
...
@@ -773,19 +772,7 @@ static int madgemc_mcaproc(char *buf, int slot, void *d)
return
len
;
}
#ifdef MODULE
int
init_module
(
void
)
{
/* Probe for cards. */
if
(
madgemc_probe
())
{
printk
(
KERN_NOTICE
"madgemc.c: No cards found.
\n
"
);
}
/* lock_tms380_module(); */
return
(
0
);
}
void
cleanup_module
(
void
)
static
void
__exit
madgemc_exit
(
void
)
{
struct
net_device
*
dev
;
struct
madgemc_card
*
this_card
;
...
...
@@ -801,9 +788,10 @@ void cleanup_module(void)
madgemc_card_list
=
this_card
->
next
;
kfree
(
this_card
);
}
/* unlock_tms380_module(); */
}
#endif
/* MODULE */
module_init
(
madgemc_probe
);
module_exit
(
madgemc_exit
);
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