aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r--drivers/bluetooth/bluecard_cs.c11
-rw-r--r--drivers/bluetooth/bt3c_cs.c11
-rw-r--r--drivers/bluetooth/btuart_cs.c11
-rw-r--r--drivers/bluetooth/dtl1_cs.c11
4 files changed, 8 insertions, 36 deletions
diff --git a/drivers/bluetooth/bluecard_cs.c b/drivers/bluetooth/bluecard_cs.c
index d9bf87ca9e83..6f907ebed2d5 100644
--- a/drivers/bluetooth/bluecard_cs.c
+++ b/drivers/bluetooth/bluecard_cs.c
@@ -65,7 +65,6 @@ MODULE_LICENSE("GPL");
65 65
66typedef struct bluecard_info_t { 66typedef struct bluecard_info_t {
67 struct pcmcia_device *p_dev; 67 struct pcmcia_device *p_dev;
68 dev_node_t node;
69 68
70 struct hci_dev *hdev; 69 struct hci_dev *hdev;
71 70
@@ -869,9 +868,6 @@ static int bluecard_probe(struct pcmcia_device *link)
869 868
870 link->io.Attributes1 = IO_DATA_PATH_WIDTH_8; 869 link->io.Attributes1 = IO_DATA_PATH_WIDTH_8;
871 link->io.NumPorts1 = 8; 870 link->io.NumPorts1 = 8;
872 link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING;
873
874 link->irq.Handler = bluecard_interrupt;
875 871
876 link->conf.Attributes = CONF_ENABLE_IRQ; 872 link->conf.Attributes = CONF_ENABLE_IRQ;
877 link->conf.IntType = INT_MEMORY_AND_IO; 873 link->conf.IntType = INT_MEMORY_AND_IO;
@@ -908,9 +904,9 @@ static int bluecard_config(struct pcmcia_device *link)
908 if (i != 0) 904 if (i != 0)
909 goto failed; 905 goto failed;
910 906
911 i = pcmcia_request_irq(link, &link->irq); 907 i = pcmcia_request_irq(link, bluecard_interrupt);
912 if (i != 0) 908 if (i != 0)
913 link->irq.AssignedIRQ = 0; 909 goto failed;
914 910
915 i = pcmcia_request_configuration(link, &link->conf); 911 i = pcmcia_request_configuration(link, &link->conf);
916 if (i != 0) 912 if (i != 0)
@@ -919,9 +915,6 @@ static int bluecard_config(struct pcmcia_device *link)
919 if (bluecard_open(info) != 0) 915 if (bluecard_open(info) != 0)
920 goto failed; 916 goto failed;
921 917
922 strcpy(info->node.dev_name, info->hdev->name);
923 link->dev_node = &info->node;
924
925 return 0; 918 return 0;
926 919
927failed: 920failed:
diff --git a/drivers/bluetooth/bt3c_cs.c b/drivers/bluetooth/bt3c_cs.c
index 027cb8bf650f..21e05fdc9121 100644
--- a/drivers/bluetooth/bt3c_cs.c
+++ b/drivers/bluetooth/bt3c_cs.c
@@ -72,7 +72,6 @@ MODULE_FIRMWARE("BT3CPCC.bin");
72 72
73typedef struct bt3c_info_t { 73typedef struct bt3c_info_t {
74 struct pcmcia_device *p_dev; 74 struct pcmcia_device *p_dev;
75 dev_node_t node;
76 75
77 struct hci_dev *hdev; 76 struct hci_dev *hdev;
78 77
@@ -661,9 +660,6 @@ static int bt3c_probe(struct pcmcia_device *link)
661 660
662 link->io.Attributes1 = IO_DATA_PATH_WIDTH_8; 661 link->io.Attributes1 = IO_DATA_PATH_WIDTH_8;
663 link->io.NumPorts1 = 8; 662 link->io.NumPorts1 = 8;
664 link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING;
665
666 link->irq.Handler = bt3c_interrupt;
667 663
668 link->conf.Attributes = CONF_ENABLE_IRQ; 664 link->conf.Attributes = CONF_ENABLE_IRQ;
669 link->conf.IntType = INT_MEMORY_AND_IO; 665 link->conf.IntType = INT_MEMORY_AND_IO;
@@ -743,9 +739,9 @@ static int bt3c_config(struct pcmcia_device *link)
743 goto failed; 739 goto failed;
744 740
745found_port: 741found_port:
746 i = pcmcia_request_irq(link, &link->irq); 742 i = pcmcia_request_irq(link, &bt3c_interrupt);
747 if (i != 0) 743 if (i != 0)
748 link->irq.AssignedIRQ = 0; 744 goto failed;
749 745
750 i = pcmcia_request_configuration(link, &link->conf); 746 i = pcmcia_request_configuration(link, &link->conf);
751 if (i != 0) 747 if (i != 0)
@@ -754,9 +750,6 @@ found_port:
754 if (bt3c_open(info) != 0) 750 if (bt3c_open(info) != 0)
755 goto failed; 751 goto failed;
756 752
757 strcpy(info->node.dev_name, info->hdev->name);
758 link->dev_node = &info->node;
759
760 return 0; 753 return 0;
761 754
762failed: 755failed:
diff --git a/drivers/bluetooth/btuart_cs.c b/drivers/bluetooth/btuart_cs.c
index 60c0953d7d00..4ed7288f99db 100644
--- a/drivers/bluetooth/btuart_cs.c
+++ b/drivers/bluetooth/btuart_cs.c
@@ -67,7 +67,6 @@ MODULE_LICENSE("GPL");
67 67
68typedef struct btuart_info_t { 68typedef struct btuart_info_t {
69 struct pcmcia_device *p_dev; 69 struct pcmcia_device *p_dev;
70 dev_node_t node;
71 70
72 struct hci_dev *hdev; 71 struct hci_dev *hdev;
73 72
@@ -590,9 +589,6 @@ static int btuart_probe(struct pcmcia_device *link)
590 589
591 link->io.Attributes1 = IO_DATA_PATH_WIDTH_8; 590 link->io.Attributes1 = IO_DATA_PATH_WIDTH_8;
592 link->io.NumPorts1 = 8; 591 link->io.NumPorts1 = 8;
593 link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING;
594
595 link->irq.Handler = btuart_interrupt;
596 592
597 link->conf.Attributes = CONF_ENABLE_IRQ; 593 link->conf.Attributes = CONF_ENABLE_IRQ;
598 link->conf.IntType = INT_MEMORY_AND_IO; 594 link->conf.IntType = INT_MEMORY_AND_IO;
@@ -672,9 +668,9 @@ static int btuart_config(struct pcmcia_device *link)
672 goto failed; 668 goto failed;
673 669
674found_port: 670found_port:
675 i = pcmcia_request_irq(link, &link->irq); 671 i = pcmcia_request_irq(link, btuart_interrupt);
676 if (i != 0) 672 if (i != 0)
677 link->irq.AssignedIRQ = 0; 673 goto failed;
678 674
679 i = pcmcia_request_configuration(link, &link->conf); 675 i = pcmcia_request_configuration(link, &link->conf);
680 if (i != 0) 676 if (i != 0)
@@ -683,9 +679,6 @@ found_port:
683 if (btuart_open(info) != 0) 679 if (btuart_open(info) != 0)
684 goto failed; 680 goto failed;
685 681
686 strcpy(info->node.dev_name, info->hdev->name);
687 link->dev_node = &info->node;
688
689 return 0; 682 return 0;
690 683
691failed: 684failed:
diff --git a/drivers/bluetooth/dtl1_cs.c b/drivers/bluetooth/dtl1_cs.c
index 17788317c51a..ef044d55cb25 100644
--- a/drivers/bluetooth/dtl1_cs.c
+++ b/drivers/bluetooth/dtl1_cs.c
@@ -67,7 +67,6 @@ MODULE_LICENSE("GPL");
67 67
68typedef struct dtl1_info_t { 68typedef struct dtl1_info_t {
69 struct pcmcia_device *p_dev; 69 struct pcmcia_device *p_dev;
70 dev_node_t node;
71 70
72 struct hci_dev *hdev; 71 struct hci_dev *hdev;
73 72
@@ -575,9 +574,6 @@ static int dtl1_probe(struct pcmcia_device *link)
575 574
576 link->io.Attributes1 = IO_DATA_PATH_WIDTH_8; 575 link->io.Attributes1 = IO_DATA_PATH_WIDTH_8;
577 link->io.NumPorts1 = 8; 576 link->io.NumPorts1 = 8;
578 link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING;
579
580 link->irq.Handler = dtl1_interrupt;
581 577
582 link->conf.Attributes = CONF_ENABLE_IRQ; 578 link->conf.Attributes = CONF_ENABLE_IRQ;
583 link->conf.IntType = INT_MEMORY_AND_IO; 579 link->conf.IntType = INT_MEMORY_AND_IO;
@@ -621,9 +617,9 @@ static int dtl1_config(struct pcmcia_device *link)
621 if (pcmcia_loop_config(link, dtl1_confcheck, NULL) < 0) 617 if (pcmcia_loop_config(link, dtl1_confcheck, NULL) < 0)
622 goto failed; 618 goto failed;
623 619
624 i = pcmcia_request_irq(link, &link->irq); 620 i = pcmcia_request_irq(link, dtl1_interrupt);
625 if (i != 0) 621 if (i != 0)
626 link->irq.AssignedIRQ = 0; 622 goto failed;
627 623
628 i = pcmcia_request_configuration(link, &link->conf); 624 i = pcmcia_request_configuration(link, &link->conf);
629 if (i != 0) 625 if (i != 0)
@@ -632,9 +628,6 @@ static int dtl1_config(struct pcmcia_device *link)
632 if (dtl1_open(info) != 0) 628 if (dtl1_open(info) != 0)
633 goto failed; 629 goto failed;
634 630
635 strcpy(info->node.dev_name, info->hdev->name);
636 link->dev_node = &info->node;
637
638 return 0; 631 return 0;
639 632
640failed: 633failed: