Commit 15c5b18c authored by Christoph Hellwig's avatar Christoph Hellwig

[NET]: Switch lanmedia driver to initcalls.

parent 5c0f9cc7
......@@ -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},
};
......
......@@ -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*/
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment