* [PATCH] switch lanmedia driver to initcalls
@ 2003-05-26 19:25 Christoph Hellwig
2003-05-26 23:33 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2003-05-26 19:25 UTC (permalink / raw)
To: netdev
It's a PCI driver and has no business in setup.c :)
--- 1.13/drivers/net/setup.c Fri May 23 09:50:54 2003
+++ edited/drivers/net/setup.c Sun May 25 13:33:06 2003
@@ -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},
};
--- 1.14/drivers/net/wan/lmc/lmc_main.c Mon May 12 04:48:01 2003
+++ edited/drivers/net/wan/lmc/lmc_main.c Sun May 25 13:29:37 2003
@@ -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*/
{
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] switch lanmedia driver to initcalls
2003-05-26 19:25 [PATCH] switch lanmedia driver to initcalls Christoph Hellwig
@ 2003-05-26 23:33 ` David S. Miller
0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2003-05-26 23:33 UTC (permalink / raw)
To: hch; +Cc: netdev
From: Christoph Hellwig <hch@lst.de>
Date: Mon, 26 May 2003 21:25:13 +0200
It's a PCI driver and has no business in setup.c :)
Applied, thanks :-)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-05-26 23:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-26 19:25 [PATCH] switch lanmedia driver to initcalls Christoph Hellwig
2003-05-26 23:33 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).