]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/pcmcia/cm4000_cs.c
device create: char: convert device_create_drvdata to device_create
[linux-2.6-omap-h63xx.git] / drivers / char / pcmcia / cm4000_cs.c
index 47adec480bd19e3f9cdd69f509376707caf59ec5..dbb912574569ef49375866a5053e429bf6d38831 100644 (file)
@@ -1761,10 +1761,10 @@ static void cmm_cm4000_release(struct pcmcia_device * link)
 
 static int cm4000_config_check(struct pcmcia_device *p_dev,
                               cistpl_cftable_entry_t *cfg,
+                              cistpl_cftable_entry_t *dflt,
+                              unsigned int vcc,
                               void *priv_data)
 {
-       p_dev->conf.ConfigIndex = cfg->index;
-
        if (!cfg->io.nwin)
                return -ENODEV;
 
@@ -1871,7 +1871,7 @@ static int cm4000_probe(struct pcmcia_device *link)
                return ret;
        }
 
-       device_create_drvdata(cmm_class, NULL, MKDEV(major, i), NULL, "cmm%d", i);
+       device_create(cmm_class, NULL, MKDEV(major, i), NULL, "cmm%d", i);
 
        return 0;
 }