Skip to contentSkip to conversation

b43: properly request pcmcia IRQ

PATCH New Michael Buesch 1 participant 1 message Nov 7, 2007 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 b43: properly request pcmcia IRQ

PCMCIA needs an additional step to request the IRQ.

No need to add code to release the IRQ here, as that's done automatically in pcmcia_disable_device().

drivers/net/wireless/b43/pcmcia.c +8 -0
Index: wireless-2.6/drivers/net/wireless/b43/pcmcia.c
===================================================================
@@ -112,6 +112,14 @@ static int __devinit b43_pcmcia_probe(st
 	if (res != CS_SUCCESS)
 		goto err_disable;
 
+	dev->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING | IRQ_FIRST_SHARED;
+	dev->irq.IRQInfo1 = IRQ_LEVEL_ID | IRQ_SHARE_ID;
+	dev->irq.Handler = NULL; /* The handler is registered later. */
+	dev->irq.Instance = NULL;
+	res = pcmcia_request_irq(dev, &dev->irq);
+	if (res != CS_SUCCESS)
+		goto err_disable;
+
 	res = pcmcia_request_configuration(dev, &dev->conf);
 	if (res != CS_SUCCESS)
 		goto err_disable;