Fixed compilation error for 2.6.25 kernel. Moved '__devinitdata' to left
authorIan Abbott <abbotti@mev.co.uk>
Fri, 18 Apr 2008 15:20:04 +0000 (15:20 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Fri, 18 Apr 2008 15:20:04 +0000 (15:20 +0000)
side of '=' operator.

comedi/drivers/adv_pci1710.c
comedi/drivers/adv_pci1723.c
comedi/drivers/adv_pci_dio.c

index 58a0bb58abaab964f63bb7112cb19a2da75c1c11..ca6ffb6c69816ab16bbd04ab163d8018dc295219 100644 (file)
@@ -204,7 +204,7 @@ typedef struct {
        unsigned int fifo_half_size;    // size of FIFO/2
 } boardtype;
 
-static struct pci_device_id pci1710_pci_table[] = __devinitdata {
+static struct pci_device_id pci1710_pci_table[] __devinitdata = {
        {PCI_VENDOR_ID_ADVANTECH, 0x1710, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
        {PCI_VENDOR_ID_ADVANTECH, 0x1711, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
        {PCI_VENDOR_ID_ADVANTECH, 0x1713, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
index f3ba6486a5387e477b21b3652ad8fd6de291f0a2..893bbc6bb3942e9adad4ea0a45e4bb2d46d95555 100644 (file)
@@ -130,7 +130,7 @@ static const boardtype boardtypes[] = {
 
 /* This is used by modprobe to translate PCI IDs to drivers.  Should
  * only be used for PCI and ISA-PnP devices */
-static struct pci_device_id pci1723_pci_table[] = __devinitdata {
+static struct pci_device_id pci1723_pci_table[] __devinitdata = {
        {PCI_VENDOR_ID_ADVANTECH, 0x1723, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
        {0}
 };
index 9862259c9cf29b2742924a5b7ecd05d7b411a16f..682a2dd32f0b2d0efc6f6816056c796b250e63f7 100644 (file)
@@ -206,7 +206,7 @@ typedef struct {
        hw_io_access io_access; // {enum hw_io_access_enum}
 } boardtype;
 
-static struct pci_device_id pci_dio_pci_table[] = __devinitdata {
+static struct pci_device_id pci_dio_pci_table[] __devinitdata = {
        {PCI_VENDOR_ID_ADVANTECH, 0x1730, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
        {PCI_VENDOR_ID_ADVANTECH, 0x1733, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
        {PCI_VENDOR_ID_ADVANTECH, 0x1734, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},