aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/soc_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pcmcia/soc_common.c')
-rw-r--r--drivers/pcmcia/soc_common.c63
1 files changed, 0 insertions, 63 deletions
diff --git a/drivers/pcmcia/soc_common.c b/drivers/pcmcia/soc_common.c
index 09a9a52ad650..e0433f571962 100644
--- a/drivers/pcmcia/soc_common.c
+++ b/drivers/pcmcia/soc_common.c
@@ -634,69 +634,6 @@ static struct pccard_operations soc_common_pcmcia_operations = {
634}; 634};
635 635
636 636
637int soc_pcmcia_request_irqs(struct soc_pcmcia_socket *skt,
638 struct pcmcia_irqs *irqs, int nr)
639{
640 int i, res = 0;
641
642 for (i = 0; i < nr; i++) {
643 if (irqs[i].sock != skt->nr)
644 continue;
645 res = request_irq(irqs[i].irq, soc_common_pcmcia_interrupt,
646 IRQF_DISABLED, irqs[i].str, skt);
647 if (res)
648 break;
649 irq_set_irq_type(irqs[i].irq, IRQ_TYPE_NONE);
650 }
651
652 if (res) {
653 printk(KERN_ERR "PCMCIA: request for IRQ%d failed (%d)\n",
654 irqs[i].irq, res);
655
656 while (i--)
657 if (irqs[i].sock == skt->nr)
658 free_irq(irqs[i].irq, skt);
659 }
660 return res;
661}
662EXPORT_SYMBOL(soc_pcmcia_request_irqs);
663
664void soc_pcmcia_free_irqs(struct soc_pcmcia_socket *skt,
665 struct pcmcia_irqs *irqs, int nr)
666{
667 int i;
668
669 for (i = 0; i < nr; i++)
670 if (irqs[i].sock == skt->nr)
671 free_irq(irqs[i].irq, skt);
672}
673EXPORT_SYMBOL(soc_pcmcia_free_irqs);
674
675void soc_pcmcia_disable_irqs(struct soc_pcmcia_socket *skt,
676 struct pcmcia_irqs *irqs, int nr)
677{
678 int i;
679
680 for (i = 0; i < nr; i++)
681 if (irqs[i].sock == skt->nr)
682 irq_set_irq_type(irqs[i].irq, IRQ_TYPE_NONE);
683}
684EXPORT_SYMBOL(soc_pcmcia_disable_irqs);
685
686void soc_pcmcia_enable_irqs(struct soc_pcmcia_socket *skt,
687 struct pcmcia_irqs *irqs, int nr)
688{
689 int i;
690
691 for (i = 0; i < nr; i++)
692 if (irqs[i].sock == skt->nr) {
693 irq_set_irq_type(irqs[i].irq, IRQ_TYPE_EDGE_RISING);
694 irq_set_irq_type(irqs[i].irq, IRQ_TYPE_EDGE_BOTH);
695 }
696}
697EXPORT_SYMBOL(soc_pcmcia_enable_irqs);
698
699
700static LIST_HEAD(soc_pcmcia_sockets); 637static LIST_HEAD(soc_pcmcia_sockets);
701static DEFINE_MUTEX(soc_pcmcia_sockets_lock); 638static DEFINE_MUTEX(soc_pcmcia_sockets_lock);
702 639