]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/staging/comedi/drivers/ni_daq_700.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6
[mv-sheeva.git] / drivers / staging / comedi / drivers / ni_daq_700.c
index bf2e84aa03ea4a755ce069db2ceb72d460b24789..cc15666e5cc195391d5fd5093dc90f4c30169943 100644 (file)
@@ -458,14 +458,6 @@ static void dio700_cs_detach(struct pcmcia_device *);
    less on other parts of the kernel.
 */
 
-/*
-   The dev_info variable is the "key" that is used to match up this
-   device driver with appropriate cards, through the card configuration
-   database.
-*/
-
-static const dev_info_t dev_info = "ni_daq_700";
-
 struct local_info_t {
        struct pcmcia_device *link;
        int stop;
@@ -536,8 +528,7 @@ static void dio700_cs_detach(struct pcmcia_device *link)
        dio700_release(link);
 
        /* This points to the parent struct local_info_t struct */
-       if (link->priv)
-               kfree(link->priv);
+       kfree(link->priv);
 
 }                              /* dio700_cs_detach */
 
@@ -695,7 +686,7 @@ struct pcmcia_driver dio700_cs_driver = {
        .id_table = dio700_cs_ids,
        .owner = THIS_MODULE,
        .drv = {
-               .name = dev_info,
+               .name = "ni_daq_700",
                },
 };