OSDN Git Service

[PATCH] fix missing MODULE_LICENSE in some drivers
authorFranck Bourdonnec <fbourdonnec@chez.com>
Sun, 11 Nov 2007 15:17:22 +0000 (16:17 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 11 Nov 2007 17:43:51 +0000 (18:43 +0100)
I was looking at our installer output (IPCop) and saw
module 3C523 tainting kernel.

Looking at the source (drivers/net/3C523.c) it is gpl
source and it misses then
MODULE_LICENSE("GPL");

Reading that this source '3c523.c' is based on 'ni52.c' a
look inside 'ni52.c' shows the MODULE_LICENSE....
but not inside the correct #ifdef module ..... #endif

Here come fixes for other missing GPL entries in drivers/net
when GPL was indicated somewhere.

drivers/net/3c523.c
drivers/net/gt64240eth.c
drivers/net/gt96100eth.c
drivers/net/ibm_emac/ibm_ocp_mal.c
drivers/net/irda/au1k_ir.c
drivers/net/sb1250-mac.c
drivers/net/tc35815.c
drivers/net/titan_ge.c
drivers/net/wan/8253x/8253xini.c

index 0068657..b7933ba 100644 (file)
@@ -1252,6 +1252,9 @@ MODULE_PARM(irq, "1-" __MODULE_STRING(MAX_3C523_CARDS) "i");
 MODULE_PARM(io, "1-" __MODULE_STRING(MAX_3C523_CARDS) "i");
 MODULE_PARM_DESC(io, "EtherLink/MC I/O base address(es)");
 MODULE_PARM_DESC(irq, "EtherLink/MC IRQ number(s)");
+MODULE_AUTHOR("Chris Beauregard");
+MODULE_DESCRIPTION("net-3-driver for the 3c523 Etherlink/MC card (i82586 Ethernet chip)");
+MODULE_LICENSE("GPL");
 
 int init_module(void)
 {
index 01a317d..3c52ccf 100644 (file)
@@ -1791,3 +1791,6 @@ static struct net_device_stats *gt64240_get_stats(struct net_device *dev)
 
        return &gp->stats;
 }
+MODULE_AUTHOR("MontaVista Software, Inc.");
+MODULE_DESCRIPTION("Ethernet driver for the MIPS GT96100 Advanced Communication Controller. Modified for the Gallileo/Marvell GT-64240 Communication Controller.");
+MODULE_LICENSE("GPL");
index d207547..d6aa5e7 100644 (file)
@@ -1633,3 +1633,4 @@ module_exit(gt96100_cleanup_module);
 
 MODULE_AUTHOR("Steve Longerbeam <stevel@mvista.com>");
 MODULE_DESCRIPTION("GT96100 Ethernet driver");
+MODULE_LICENSE("GPL");
index 54c85b8..b211da9 100644 (file)
@@ -482,3 +482,6 @@ exit_mals(void)
 
 module_init(init_mals);
 module_exit(exit_mals);
+MODULE_AUTHOR("Armin Kuster");
+MODULE_DESCRIPTION("ibm ocp ethernet driver (MAL)");
+MODULE_LICENSE("GPL");
index f9f87fa..ed2d324 100644 (file)
@@ -895,6 +895,7 @@ static struct net_device_stats *au1k_irda_stats(struct net_device *dev)
 #ifdef MODULE
 MODULE_AUTHOR("Pete Popov <ppopov@mvista.com>");
 MODULE_DESCRIPTION("Au1000 IrDA Device Driver");
+MODULE_LICENSE("GPL");
 
 module_init(au1k_irda_init);
 module_exit(au1k_irda_exit);
index bace246..8dca0c7 100644 (file)
@@ -98,6 +98,7 @@ static char version1[] __devinitdata =
 
 MODULE_AUTHOR("Mitch Lichtenberg (Broadcom Corp.)");
 MODULE_DESCRIPTION("Broadcom SiByte SOC GB Ethernet driver");
+MODULE_LICENSE("GPL");
 MODULE_PARM(debug, "i");
 MODULE_PARM(noisy_mii, "i");
 MODULE_PARM(options, "1-" __MODULE_STRING(MAX_UNITS) "i");
index c038820..1be8269 100644 (file)
@@ -1777,3 +1777,6 @@ static void __exit tc35815_cleanup_module(void)
 }
 module_init(tc35815_init_module);
 module_exit(tc35815_cleanup_module);
+MODULE_AUTHOR("MontaVista Software Inc.");
+MODULE_DESCRIPTION("TOSHIBA TC35815CF PCI 10/100Mbps ethernet driver");
+MODULE_LICENSE("GPL");
index a07ea01..f7e9744 100644 (file)
@@ -2039,6 +2039,9 @@ static void __init titan_ge_cleanup_module(void)
 
 module_init(titan_ge_init_module);
 module_exit(titan_ge_cleanup_module);
+MODULE_AUTHOR("Manish Lachwani");
+MODULE_DESCRIPTION("Titan ethernet ports driver");
+MODULE_LICENSE("GPL");
 
 /*
  * Initialize the Rx descriptor ring for the Titan Ge
index beba5a2..99c319f 100644 (file)
@@ -3041,3 +3041,4 @@ module_init(auraXX20_probe);
 module_exit(auraXX20_cleanup);
 MODULE_DESCRIPTION("Aurora Multiport Multiprotocol Serial Driver");
 MODULE_AUTHOR("Joachim Martillo <martillo@telfordtools.com>");
+MODULE_LICENSE("GPL");