Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315669
b: refs/heads/master
c: 74ad8fd
h: refs/heads/master
i:
  315667: 5f2b11a
v: v3
  • Loading branch information
Andrei Emeltchenko authored and Gustavo Padovan committed Jun 30, 2012
1 parent 47130c0 commit 0ec2b2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d300fa9b14549c64e63691356c68483bcfeb0f04
refs/heads/master: 74ad8fdaefe6ccb8ef1918394a9d04a036658346
6 changes: 4 additions & 2 deletions trunk/drivers/bluetooth/bluecard_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,6 @@ static int bluecard_hci_flush(struct hci_dev *hdev)
static int bluecard_hci_open(struct hci_dev *hdev)
{
bluecard_info_t *info = hci_get_drvdata(hdev);
unsigned int iobase = info->p_dev->resource[0]->start;

if (test_bit(CARD_HAS_PCCARD_ID, &(info->hw_state)))
bluecard_hci_set_baud_rate(hdev, DEFAULT_BAUD_RATE);
Expand All @@ -630,6 +629,8 @@ static int bluecard_hci_open(struct hci_dev *hdev)
return 0;

if (test_bit(CARD_HAS_PCCARD_ID, &(info->hw_state))) {
unsigned int iobase = info->p_dev->resource[0]->start;

/* Enable LED */
outb(0x08 | 0x20, iobase + 0x30);
}
Expand All @@ -641,14 +642,15 @@ static int bluecard_hci_open(struct hci_dev *hdev)
static int bluecard_hci_close(struct hci_dev *hdev)
{
bluecard_info_t *info = hci_get_drvdata(hdev);
unsigned int iobase = info->p_dev->resource[0]->start;

if (!test_and_clear_bit(HCI_RUNNING, &(hdev->flags)))
return 0;

bluecard_hci_flush(hdev);

if (test_bit(CARD_HAS_PCCARD_ID, &(info->hw_state))) {
unsigned int iobase = info->p_dev->resource[0]->start;

/* Disable LED */
outb(0x00, iobase + 0x30);
}
Expand Down

0 comments on commit 0ec2b2e

Please sign in to comment.