aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/hisax/elsa_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/isdn/hisax/elsa_cs.c')
-rw-r--r--drivers/isdn/hisax/elsa_cs.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/isdn/hisax/elsa_cs.c b/drivers/isdn/hisax/elsa_cs.c
index c9f2279e21f..8e170e4b7cf 100644
--- a/drivers/isdn/hisax/elsa_cs.c
+++ b/drivers/isdn/hisax/elsa_cs.c
@@ -136,10 +136,6 @@ static int __devinit elsa_cs_probe(struct pcmcia_device *link)
136 136
137 local->cardnr = -1; 137 local->cardnr = -1;
138 138
139 /* Interrupt setup */
140 link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING;
141 link->irq.Handler = NULL;
142
143 /* 139 /*
144 General socket configuration defaults can go here. In this 140 General socket configuration defaults can go here. In this
145 client, we assume very little, and rely on the CIS for almost 141 client, we assume very little, and rely on the CIS for almost
@@ -223,11 +219,8 @@ static int __devinit elsa_cs_config(struct pcmcia_device *link)
223 if (i != 0) 219 if (i != 0)
224 goto failed; 220 goto failed;
225 221
226 i = pcmcia_request_irq(link, &link->irq); 222 if (!link->irq)
227 if (i != 0) {
228 link->irq.AssignedIRQ = 0;
229 goto failed; 223 goto failed;
230 }
231 224
232 i = pcmcia_request_configuration(link, &link->conf); 225 i = pcmcia_request_configuration(link, &link->conf);
233 if (i != 0) 226 if (i != 0)
@@ -244,7 +237,7 @@ static int __devinit elsa_cs_config(struct pcmcia_device *link)
244 printk(KERN_INFO "%s: index 0x%02x: ", 237 printk(KERN_INFO "%s: index 0x%02x: ",
245 dev->node.dev_name, link->conf.ConfigIndex); 238 dev->node.dev_name, link->conf.ConfigIndex);
246 if (link->conf.Attributes & CONF_ENABLE_IRQ) 239 if (link->conf.Attributes & CONF_ENABLE_IRQ)
247 printk(", irq %d", link->irq.AssignedIRQ); 240 printk(", irq %d", link->irq);
248 if (link->io.NumPorts1) 241 if (link->io.NumPorts1)
249 printk(", io 0x%04x-0x%04x", link->io.BasePort1, 242 printk(", io 0x%04x-0x%04x", link->io.BasePort1,
250 link->io.BasePort1+link->io.NumPorts1-1); 243 link->io.BasePort1+link->io.NumPorts1-1);
@@ -253,7 +246,7 @@ static int __devinit elsa_cs_config(struct pcmcia_device *link)
253 link->io.BasePort2+link->io.NumPorts2-1); 246 link->io.BasePort2+link->io.NumPorts2-1);
254 printk("\n"); 247 printk("\n");
255 248
256 icard.para[0] = link->irq.AssignedIRQ; 249 icard.para[0] = link->irq;
257 icard.para[1] = link->io.BasePort1; 250 icard.para[1] = link->io.BasePort1;
258 icard.protocol = protocol; 251 icard.protocol = protocol;
259 icard.typ = ISDN_CTYPE_ELSA_PCMCIA; 252 icard.typ = ISDN_CTYPE_ELSA_PCMCIA;