pcmcia: use previously assigned IRQ for all card functions
authorDominik Brodowski <linux@dominikbrodowski.net>
Wed, 7 Apr 2010 12:12:56 +0000 (14:12 +0200)
committerDominik Brodowski <linux@dominikbrodowski.net>
Sun, 11 Apr 2010 12:36:58 +0000 (14:36 +0200)
Use a previously assigned IRQ for all card functions, not only if
CONFIG_PCMCIA_PROBE is set.

Reported-by: Alexander Kurz <linux@kbdbabel.org>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
drivers/pcmcia/pcmcia_resource.c

index caec1dee2a4bc9e9925ba1ed15c4fbce02933efd..7c3d03bb4f304eac0b22fb1ae99db20026133d44 100644 (file)
@@ -755,12 +755,12 @@ int pcmcia_request_irq(struct pcmcia_device *p_dev, irq_req_t *req)
        else
                printk(KERN_WARNING "pcmcia: Driver needs updating to support IRQ sharing.\n");
 
-#ifdef CONFIG_PCMCIA_PROBE
-
-       if (s->irq.AssignedIRQ != 0) {
-               /* If the interrupt is already assigned, it must be the same */
+       /* If the interrupt is already assigned, it must be the same */
+       if (s->irq.AssignedIRQ != 0)
                irq = s->irq.AssignedIRQ;
-       } else {
+
+#ifdef CONFIG_PCMCIA_PROBE
+       if (!irq) {
                int try;
                u32 mask = s->irq_mask;
                void *data = p_dev; /* something unique to this device */