Patch from abbotti@mev.co.uk (Ian Abbott):
authorFrank Mori Hess <fmhess@speakeasy.net>
Wed, 2 Nov 2005 00:21:28 +0000 (00:21 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Wed, 2 Nov 2005 00:21:28 +0000 (00:21 +0000)
The following drivers do not compile for 2.6.13 upwards due to the removal of
the pcmcia_get_card_services_info function, servinfo_t typedef and
CS_RELEASE_CODE macro:

 cb_das16_cs
 das08_cs
 ni_daq_dio24
 ni_labpc_cs
 ni_mio_cs
 quatech_daqp_cs

I think the best solution is to remove the offending code altogether along with
the #include <pcmcia/version.h> lines as CS_RELEASE_CODE has had the same value
since at least 2.4.0 and Comedi doesn't support earlier kernels anymore.

comedi/drivers/cb_das16_cs.c
comedi/drivers/das08_cs.c
comedi/drivers/ni_daq_dio24.c
comedi/drivers/ni_labpc_cs.c
comedi/drivers/ni_mio_cs.c
comedi/drivers/quatech_daqp_cs.c

index c654bc4f90a4de2d2cd417b17f94acdcdbec4171..ca771579ba79c820b625220967433d8fe4fdf6af 100644 (file)
@@ -35,7 +35,6 @@ Status: experimental
 #include <linux/delay.h>
 #include <linux/pci.h>
 
-#include <pcmcia/version.h>
 #include <pcmcia/cs_types.h>
 #include <pcmcia/cs.h>
 #include <pcmcia/cistpl.h>
@@ -1155,15 +1154,7 @@ struct pcmcia_driver das16cs_driver =
 
 static int __init init_das16cs_pcmcia_cs(void)
 {
-       servinfo_t serv;
        DEBUG(0, "%s\n", version);
-       pcmcia_get_card_services_info(&serv);
-       if (serv.Revision != CS_RELEASE_CODE)
-       {
-               printk(KERN_NOTICE "das16cs: Card Services release "
-                       "does not match!\n");
-               //return -1;
-       }
        pcmcia_register_driver(&das16cs_driver);
        return 0;
 }
index f9af08fb28c502871712ceb94344495f887aa4fd..aa73f038feca0fb8752e938a48cccd0ef9e2b403 100644 (file)
@@ -48,7 +48,6 @@ Command support does not exist, but could be added for this board.
 #include "das08.h"
 
 // pcmcia includes
-#include <pcmcia/version.h>
 #include <pcmcia/cs_types.h>
 #include <pcmcia/cs.h>
 #include <pcmcia/cistpl.h>
@@ -671,15 +670,7 @@ struct pcmcia_driver das08_cs_driver =
 
 static int __init init_das08_pcmcia_cs(void)
 {
-       servinfo_t serv;
        DEBUG(0, "%s\n", version);
-       pcmcia_get_card_services_info(&serv);
-       if (serv.Revision != CS_RELEASE_CODE)
-       {
-               printk(KERN_NOTICE "das08: Card Services release "
-                       "does not match!\n");
-               return -1;
-       }
        pcmcia_register_driver(&das08_cs_driver);
        return 0;
 }
index 788e99eb6864ba8f436e58b6bd9bd3241106c82e..1ef146e671e65b53ca095b46aeb94d7976e56464 100644 (file)
@@ -47,7 +47,6 @@ the PCMCIA interface.
 
 #include "8255.h"
 
-#include <pcmcia/version.h>
 #include <pcmcia/cs_types.h>
 #include <pcmcia/cs.h>
 #include <pcmcia/cistpl.h>
@@ -800,15 +799,8 @@ struct pcmcia_driver dio24_cs_driver =
 
 static int __init init_dio24_cs(void)
 {
-    servinfo_t serv;
     printk("ni_daq_dio24: HOLA SOY YO!\n");
     DEBUG(0, "%s\n", version);
-       pcmcia_get_card_services_info(&serv);
-    if (serv.Revision != CS_RELEASE_CODE) {
-               printk(KERN_NOTICE "ni_daq_dio24: Card Services release "
-                       "does not match! Vaya putada\n");
-               return -1;
-    }
        pcmcia_register_driver(&dio24_cs_driver);
     return 0;
 }
index 3c22f3f7cbe45ffbf1439ba5f6c28369491f722f..550977c14973904adcade301f92447c302045809 100644 (file)
@@ -72,7 +72,6 @@ NI manuals:
 #include "comedi_fc.h"
 #include "ni_labpc.h"
 
-#include <pcmcia/version.h>
 #include <pcmcia/cs_types.h>
 #include <pcmcia/cs.h>
 #include <pcmcia/cistpl.h>
@@ -723,14 +722,7 @@ struct pcmcia_driver labpc_cs_driver =
 
 static int __init init_labpc_cs(void)
 {
-    servinfo_t serv;
     DEBUG(0, "%s\n", version);
-    pcmcia_get_card_services_info(&serv);
-    if (serv.Revision != CS_RELEASE_CODE) {
-       printk(KERN_NOTICE "ni_labpc: Card Services release "
-              "does not match!\n");
-       return -1;
-    }
        pcmcia_register_driver(&labpc_cs_driver);
     return 0;
 }
index 1d309fcd53c739aaacde93032a5d76f00fbfebe8..acf18c083709db3f58e0d5ec0c0d96cc0f35e1c4 100644 (file)
@@ -49,7 +49,6 @@ See the notes in the ni_atmio.o driver.
 #include "ni_stc.h"
 #include "8255.h"
 
-#include <pcmcia/version.h>
 #include <pcmcia/cs_types.h>
 #include <pcmcia/cs.h>
 #include <pcmcia/cistpl.h>
@@ -622,14 +621,6 @@ struct pcmcia_driver ni_mio_cs_driver =
 
 int init_module(void)
 {
-       servinfo_t serv;
-
-       pcmcia_get_card_services_info(&serv);
-       if(serv.Revision != CS_RELEASE_CODE){
-               printk(KERN_NOTICE "mio_cs: Card Services release "
-                       "does not match!\n");
-               //return -EPERM; /* XXX what to return? */
-       }
        pcmcia_register_driver(&ni_mio_cs_driver);
        comedi_driver_register(&driver_ni_mio_cs);
        return 0;
index 6b0cebef8ac66fac10cd051c58eef6c351687685..9e75bf9eaf82d4b709938b762d4549ec1d1c5f5c 100644 (file)
@@ -50,7 +50,6 @@ Devices: [Quatech] DAQP-208 (daqp), DAQP-308
 #include <linux/comedidev.h>
 
 #include <linux/version.h>
-#include <pcmcia/version.h>
 #include <pcmcia/cs_types.h>
 #include <pcmcia/cs.h>
 #include <pcmcia/cistpl.h>
@@ -1531,14 +1530,7 @@ struct pcmcia_driver daqp_cs_driver =
 
 int init_module(void)
 {
-    servinfo_t serv;
     DEBUG(0, "%s\n", version);
-    pcmcia_get_card_services_info(&serv);
-    if (serv.Revision != CS_RELEASE_CODE) {
-       printk(KERN_NOTICE "daqp_cs: Card Services release "
-              "does not match!\n");
-       return -1;
-    }
        pcmcia_register_driver(&daqp_cs_driver);
     comedi_driver_register(&driver_daqp);
     return 0;