Skip to contentSkip to conversation

staging: xillybus: Multiple definition of xillyname resolved (bug fix)

PATCH In review Eli Billauer 2 participants 2 messages Jul 26, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: xillybus: Multiple definition of xillyname resolved (bug fix)

---
 drivers/staging/xillybus/xillybus.h      |    2 --
 drivers/staging/xillybus/xillybus_core.c |    2 ++
 drivers/staging/xillybus/xillybus_of.c   |    2 ++
 drivers/staging/xillybus/xillybus_pcie.c |    2 ++
 4 files changed, 6 insertions(+), 2 deletions(-)
drivers/staging/xillybus/xillybus.h +0 -2
index c260ebc..b62faeb 100644
@@ -24,8 +24,6 @@
 #include <linux/list.h>
 #include <linux/workqueue.h>
 
-char xillyname[] = "xillybus";
-
 struct xilly_endpoint_hardware;
 
 struct xilly_page {
drivers/staging/xillybus/xillybus_core.c +2 -0
index dd0a71c..7991e57 100644
@@ -61,6 +61,8 @@ MODULE_LICENSE("GPL v2");
 #define XILLYMSG_OPCODE_FATAL_ERROR 4
 #define XILLYMSG_OPCODE_NONEMPTY 5
 
+static const char xillyname[] = "xillybus";
+
 static struct class *xillybus_class;
 
 /*
drivers/staging/xillybus/xillybus_of.c +2 -0
index b875376..122d9ba 100644
@@ -27,6 +27,8 @@ MODULE_VERSION("1.06");
 MODULE_ALIAS("xillybus_of");
 MODULE_LICENSE("GPL v2");
 
+static const char xillyname[] = "xillybus_of";
+
 /* Match table for of_platform binding */
 static struct of_device_id xillybus_of_match[] = {
 	{ .compatible = "xlnx,xillybus-1.00.a", },
drivers/staging/xillybus/xillybus_pcie.c +2 -0
index 592f8f7..ad45bdb 100644
@@ -28,6 +28,8 @@ MODULE_LICENSE("GPL v2");
 #define PCI_VENDOR_ID_ACTEL		0x11aa
 #define PCI_VENDOR_ID_LATTICE		0x1204
 
+static const char xillyname[] = "xillybus_pcie";
+
 static DEFINE_PCI_DEVICE_TABLE(xillyids) = {
 	{PCI_DEVICE(PCI_VENDOR_ID_XILINX, PCI_DEVICE_ID_XILLYBUS)},
 	{PCI_DEVICE(PCI_VENDOR_ID_ALTERA, PCI_DEVICE_ID_XILLYBUS)},
Signature · 1 line
1.7.2.3
maintainer
#1 lore raw
Quoted 2 lines · Eli Billauer

You forgot a "Reported-by:" line here, I'll go add it by hand, but please do so yourself next time.

thanks,

greg k-h