netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] remove sdla from setup.c
@ 2003-05-28 11:06 Christoph Hellwig
  2003-05-29  9:57 ` David S. Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2003-05-28 11:06 UTC (permalink / raw)
  To: netdev

sdla had calls from both Space.c and setup.c.  Leave the Space.c one
alone as per previous discussion but move over the setup.c one to
initcalls.  (and remove the prototype for a third one from setup.c!)


--- 1.14/drivers/net/setup.c	Tue May 27 01:32:22 2003
+++ edited/drivers/net/setup.c	Tue May 27 14:36:58 2003
@@ -13,8 +13,6 @@
 
 extern int scc_enet_init(void); 
 extern int fec_enet_init(void); 
-extern int sdla_setup(void); 
-extern int sdla_c_setup(void); 
 
 /*
  *	Devices in this list must do new style probing. That is they must
@@ -35,9 +33,6 @@
 #if defined(CONFIG_DMASCC)
 	{dmascc_init, 0},
 #endif	
-#if defined(CONFIG_SDLA)
-	{sdla_c_setup, 0},
-#endif
 #if defined(CONFIG_SCC_ENET)
         {scc_enet_init, 0},
 #endif
===== drivers/net/wan/sdla.c 1.10 vs edited =====
--- 1.10/drivers/net/wan/sdla.c	Sun May 18 17:18:07 2003
+++ edited/drivers/net/wan/sdla.c	Tue May 27 15:07:49 2003
@@ -1667,20 +1667,20 @@
 	.name = "sdla0",
 	.init = sdla_init
 };
+#endif /* MODULE */
 
-MODULE_LICENSE("GPL");
-
-int init_module(void)
+static int __init init_sdla(void)
 {
-	int result;
+	int result = 0;
 
 	sdla_c_setup();
-	if ((result = register_netdev(&sdla0)) != 0)
-		return result;
-	return 0;
+#ifdef MODULE
+	result = register_netdev(&sdla0);
+#endif
+	return result;
 }
 
-void cleanup_module(void)
+static void __exit exit_sdla(void)
 {
 	unregister_netdev(&sdla0);
 	if (sdla0.priv)
@@ -1688,4 +1688,8 @@
 	if (sdla0.irq)
 		free_irq(sdla0.irq, &sdla0);
 }
-#endif /* MODULE */
+
+MODULE_LICENSE("GPL");
+
+module_init(init_sdla);
+module_exit(exit_sdla);

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] remove sdla from setup.c
  2003-05-28 11:06 [PATCH] remove sdla from setup.c Christoph Hellwig
@ 2003-05-29  9:57 ` David S. Miller
  2003-05-29 15:36   ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 4+ messages in thread
From: David S. Miller @ 2003-05-29  9:57 UTC (permalink / raw)
  To: hch; +Cc: netdev

   From: Christoph Hellwig <hch@lst.de>
   Date: Wed, 28 May 2003 13:06:58 +0200

   sdla had calls from both Space.c and setup.c.  Leave the Space.c one
   alone as per previous discussion but move over the setup.c one to
   initcalls.  (and remove the prototype for a third one from setup.c!)
   
Looks ok, applied.

Some of this wan driver stuff is so crappy :(

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] remove sdla from setup.c
  2003-05-29  9:57 ` David S. Miller
@ 2003-05-29 15:36   ` Arnaldo Carvalho de Melo
  2003-05-29 21:03     ` David S. Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Arnaldo Carvalho de Melo @ 2003-05-29 15:36 UTC (permalink / raw)
  To: David S. Miller; +Cc: hch, netdev

Em Thu, May 29, 2003 at 02:57:49AM -0700, David S. Miller escreveu:
>    From: Christoph Hellwig <hch@lst.de>
>    Date: Wed, 28 May 2003 13:06:58 +0200
> 
>    sdla had calls from both Space.c and setup.c.  Leave the Space.c one
>    alone as per previous discussion but move over the setup.c one to
>    initcalls.  (and remove the prototype for a third one from setup.c!)
>    
> Looks ok, applied.
> 
> Some of this wan driver stuff is so crappy :(

Crappy? You are being nice...

What about this:

void lock_adapter_irq(spinlock_t *lock, unsigned long *smp_flags)
{
        spin_lock_irqsave(lock, *smp_flags);
}

Why the hell do we need a bogus wrapper for something so standard?

:-(

- Arnaldo

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] remove sdla from setup.c
  2003-05-29 15:36   ` Arnaldo Carvalho de Melo
@ 2003-05-29 21:03     ` David S. Miller
  0 siblings, 0 replies; 4+ messages in thread
From: David S. Miller @ 2003-05-29 21:03 UTC (permalink / raw)
  To: acme; +Cc: hch, netdev

   From: Arnaldo Carvalho de Melo <acme@conectiva.com.br>
   Date: Thu, 29 May 2003 12:36:25 -0300

   Em Thu, May 29, 2003 at 02:57:49AM -0700, David S. Miller escreveu:
   > Some of this wan driver stuff is so crappy :(
   
   Crappy? You are being nice...

It's possible :-)  You'd think at least the frame relay code, which is
pretty important especially in countries like Poland, would get
cleaned up by somebody.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-05-29 21:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-28 11:06 [PATCH] remove sdla from setup.c Christoph Hellwig
2003-05-29  9:57 ` David S. Miller
2003-05-29 15:36   ` Arnaldo Carvalho de Melo
2003-05-29 21:03     ` 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).