diff options
Diffstat (limited to 'drivers/bluetooth/bt3c_cs.c')
| -rw-r--r-- | drivers/bluetooth/bt3c_cs.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/bluetooth/bt3c_cs.c b/drivers/bluetooth/bt3c_cs.c index d58e22b9f06a..d814a2755ccb 100644 --- a/drivers/bluetooth/bt3c_cs.c +++ b/drivers/bluetooth/bt3c_cs.c | |||
| @@ -659,11 +659,9 @@ static int bt3c_probe(struct pcmcia_device *link) | |||
| 659 | 659 | ||
| 660 | link->io.Attributes1 = IO_DATA_PATH_WIDTH_8; | 660 | link->io.Attributes1 = IO_DATA_PATH_WIDTH_8; |
| 661 | link->io.NumPorts1 = 8; | 661 | link->io.NumPorts1 = 8; |
| 662 | link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING | IRQ_HANDLE_PRESENT; | 662 | link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING; |
| 663 | link->irq.IRQInfo1 = IRQ_LEVEL_ID; | ||
| 664 | 663 | ||
| 665 | link->irq.Handler = bt3c_interrupt; | 664 | link->irq.Handler = bt3c_interrupt; |
| 666 | link->irq.Instance = info; | ||
| 667 | 665 | ||
| 668 | link->conf.Attributes = CONF_ENABLE_IRQ; | 666 | link->conf.Attributes = CONF_ENABLE_IRQ; |
| 669 | link->conf.IntType = INT_MEMORY_AND_IO; | 667 | link->conf.IntType = INT_MEMORY_AND_IO; |
| @@ -740,21 +738,16 @@ static int bt3c_config(struct pcmcia_device *link) | |||
| 740 | goto found_port; | 738 | goto found_port; |
| 741 | 739 | ||
| 742 | BT_ERR("No usable port range found"); | 740 | BT_ERR("No usable port range found"); |
| 743 | cs_error(link, RequestIO, -ENODEV); | ||
| 744 | goto failed; | 741 | goto failed; |
| 745 | 742 | ||
| 746 | found_port: | 743 | found_port: |
| 747 | i = pcmcia_request_irq(link, &link->irq); | 744 | i = pcmcia_request_irq(link, &link->irq); |
| 748 | if (i != 0) { | 745 | if (i != 0) |
| 749 | cs_error(link, RequestIRQ, i); | ||
| 750 | link->irq.AssignedIRQ = 0; | 746 | link->irq.AssignedIRQ = 0; |
| 751 | } | ||
| 752 | 747 | ||
| 753 | i = pcmcia_request_configuration(link, &link->conf); | 748 | i = pcmcia_request_configuration(link, &link->conf); |
| 754 | if (i != 0) { | 749 | if (i != 0) |
| 755 | cs_error(link, RequestConfiguration, i); | ||
| 756 | goto failed; | 750 | goto failed; |
| 757 | } | ||
| 758 | 751 | ||
| 759 | if (bt3c_open(info) != 0) | 752 | if (bt3c_open(info) != 0) |
| 760 | goto failed; | 753 | goto failed; |
