diff options
Diffstat (limited to 'drivers/pcmcia')
-rw-r--r-- | drivers/pcmcia/pcmcia_resource.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/pcmcia/pcmcia_resource.c b/drivers/pcmcia/pcmcia_resource.c index c8f77b889d42..78af59415930 100644 --- a/drivers/pcmcia/pcmcia_resource.c +++ b/drivers/pcmcia/pcmcia_resource.c | |||
@@ -812,6 +812,15 @@ int pcmcia_request_irq(struct pcmcia_device *p_dev, irq_req_t *req) | |||
812 | type = IRQF_SHARED; | 812 | type = IRQF_SHARED; |
813 | 813 | ||
814 | #ifdef CONFIG_PCMCIA_PROBE | 814 | #ifdef CONFIG_PCMCIA_PROBE |
815 | |||
816 | #ifdef IRQ_NOAUTOEN | ||
817 | /* if the underlying IRQ infrastructure allows for it, only allocate | ||
818 | * the IRQ, but do not enable it | ||
819 | */ | ||
820 | if (!(req->Attributes & IRQ_HANDLE_PRESENT)) | ||
821 | type |= IRQ_NOAUTOEN; | ||
822 | #endif /* IRQ_NOAUTOEN */ | ||
823 | |||
815 | if (s->irq.AssignedIRQ != 0) { | 824 | if (s->irq.AssignedIRQ != 0) { |
816 | /* If the interrupt is already assigned, it must be the same */ | 825 | /* If the interrupt is already assigned, it must be the same */ |
817 | irq = s->irq.AssignedIRQ; | 826 | irq = s->irq.AssignedIRQ; |