atlx: move modinfo data from atlx.h to atl1.c
authorAlex Chiang <[email protected]>
Wed, 27 May 2009 03:50:12 +0000 (20:50 -0700)
committerDavid S. Miller <[email protected]>
Wed, 27 May 2009 03:50:12 +0000 (20:50 -0700)
Both atl1.c and atl2.c include atlx.h, which defines some modinfo
stuff. But atl2.c seems like it doesn't want the modinfo data
from atlx.h, as it defines its own.

Running modinfo on atl2.ko, we get conflicting information:

$ /sbin/modinfo drivers/net/atlx/atl2.ko | egrep "version|description|author"
version:        2.2.3
description:    Atheros Fast Ethernet Network Driver
author:         Atheros Corporation <[email protected]>, Chris Snook <[email protected]>
version:        2.1.3
author:         Xiong Huang <[email protected]>,  Chris Snook <[email protected]>, Jay Cliburn <[email protected]>

Move the modinfo data out of atlx.h and into atl1.c to eliminate
the confusion:

$ /sbin/modinfo drivers/net/atlx/atl1.ko | egrep "version|description|author"
version:        2.1.3
author:         Xiong Huang <[email protected]>,  Chris Snook <[email protected]>, Jay Cliburn <[email protected]>
description:    Atheros L1 Gigabit Ethernet Driver

$ /sbin/modinfo drivers/net/atlx/atl2.ko | egrep "version|description|author"
version:        2.2.3
description:    Atheros Fast Ethernet Network Driver
author:         Atheros Corporation <[email protected]>, Chris Snook <[email protected]>

Reported-by: Scott Scriven <[email protected]>
Signed-off-by: Alex Chiang <[email protected]>
Acked-by: Jay Cliburn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/atlx/atl1.c
drivers/net/atlx/atlx.h

index 0ab22540bf597a8ec6b97f8c4f54f2055608af0e..4e817126e280b177d10561d8ee76f881dd437257 100644 (file)
 
 #include "atl1.h"
 
+#define ATLX_DRIVER_VERSION "2.1.3"
+MODULE_AUTHOR("Xiong Huang <[email protected]>, \
+       Chris Snook <[email protected]>, Jay Cliburn <[email protected]>");
+MODULE_LICENSE("GPL");
+MODULE_VERSION(ATLX_DRIVER_VERSION);
+
 /* Temporary hack for merging atl1 and atl2 */
 #include "atlx.c"
 
index 297a03da6b7f5452a154f922adcd2f20d9cbe93a..14054b75aa62684424fedaff97147cbfde1db46e 100644 (file)
 #include <linux/module.h>
 #include <linux/types.h>
 
-#define ATLX_DRIVER_VERSION "2.1.3"
-MODULE_AUTHOR("Xiong Huang <[email protected]>, \
-       Chris Snook <[email protected]>, Jay Cliburn <[email protected]>");
-MODULE_LICENSE("GPL");
-MODULE_VERSION(ATLX_DRIVER_VERSION);
-
 #define ATLX_ERR_PHY                   2
 #define ATLX_ERR_PHY_SPEED             7
 #define ATLX_ERR_PHY_RES               8