Commit d3e03f4e authored by Dominik Brodowski's avatar Dominik Brodowski

pcmcia: use previously assigned IRQ for all card functions

Use a previously assigned IRQ for all card functions, not only if
CONFIG_PCMCIA_PROBE is set.
Reported-by: default avatarAlexander Kurz <linux@kbdbabel.org>
Signed-off-by: default avatarDominik Brodowski <linux@dominikbrodowski.net>
parent 0eddb519
...@@ -755,12 +755,12 @@ int pcmcia_request_irq(struct pcmcia_device *p_dev, irq_req_t *req) ...@@ -755,12 +755,12 @@ int pcmcia_request_irq(struct pcmcia_device *p_dev, irq_req_t *req)
else else
printk(KERN_WARNING "pcmcia: Driver needs updating to support IRQ sharing.\n"); printk(KERN_WARNING "pcmcia: Driver needs updating to support IRQ sharing.\n");
#ifdef CONFIG_PCMCIA_PROBE /* If the interrupt is already assigned, it must be the same */
if (s->irq.AssignedIRQ != 0)
if (s->irq.AssignedIRQ != 0) {
/* If the interrupt is already assigned, it must be the same */
irq = s->irq.AssignedIRQ; irq = s->irq.AssignedIRQ;
} else {
#ifdef CONFIG_PCMCIA_PROBE
if (!irq) {
int try; int try;
u32 mask = s->irq_mask; u32 mask = s->irq_mask;
void *data = p_dev; /* something unique to this device */ void *data = p_dev; /* something unique to this device */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment