switch lanmedia driver to initcalls
Subsystems (2)
PATCH 1/1 switch lanmedia driver to initcalls
It's a PCI driver and has no business in setup.c :)
drivers/net/setup.c +0 -4
@@ -15,7 +15,6 @@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 @@#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 +5 -5
@@ -1965,9 +1965,7 @@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 @@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 @@ 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*/ {
David S. Miller
Applied From: Christoph Hellwig <[email protected]>
Date: Mon, 26 May 2003 21:25:13 +0200
It's a PCI driver and has no business in setup.c :)
Applied, thanks :-)