pcmcia: pcmcia_config_loop() ConfigIndex unification
[firefly-linux-kernel-4.4.55.git] / drivers / isdn / hisax / teles_cs.c
index 2b063a2916f41f72b9b4d148e16c84730f0b7693..ecb75ae8a399af0c1d4479f6719b3fa6d2f06504 100644 (file)
@@ -202,13 +202,11 @@ static int teles_cs_configcheck(struct pcmcia_device *p_dev,
 
        if ((cf->io.nwin > 0) && cf->io.win[0].base) {
                printk(KERN_INFO "(teles_cs: looks like the 96 model)\n");
-               p_dev->conf.ConfigIndex = cf->index;
                p_dev->io.BasePort1 = cf->io.win[0].base;
                if (!pcmcia_request_io(p_dev, &p_dev->io))
                        return 0;
        } else {
                printk(KERN_INFO "(teles_cs: looks like the 97 model)\n");
-               p_dev->conf.ConfigIndex = cf->index;
                for (j = 0x2f0; j > 0x100; j -= 0x10) {
                        p_dev->io.BasePort1 = j;
                        if (!pcmcia_request_io(p_dev, &p_dev->io))