]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
pcmcia: Whine harder about use of EXCLUSIVE
authorAlan Cox <alan@redhat.com>
Sun, 5 Oct 2008 16:35:59 +0000 (17:35 +0100)
committerDominik Brodowski <linux@dominikbrodowski.net>
Fri, 17 Oct 2008 21:07:34 +0000 (23:07 +0200)
The exclusive IRQ line support is a legacy and any remaining drivers that
cannot share interrupts need tidying up so whine harder about them.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
drivers/pcmcia/pcmcia_resource.c

index afea2b2558b5d63d3af6fe04f230011a66fdd415..76d4a98f09559b9a78d3f4335a1961b9de11eb6e 100644 (file)
@@ -693,8 +693,9 @@ int pcmcia_request_irq(struct pcmcia_device *p_dev, irq_req_t *req)
        type = 0;
        if (s->functions > 1)           /* All of this ought to be handled higher up */
                type = IRQF_SHARED;
-       if (req->Attributes & IRQ_TYPE_DYNAMIC_SHARING)
+       else if (req->Attributes & IRQ_TYPE_DYNAMIC_SHARING)
                type = IRQF_SHARED;
+       else printk(KERN_WARNING "pcmcia: Driver needs updating to support IRQ sharing.\n");
 
 #ifdef CONFIG_PCMCIA_PROBE