Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 20251
b: refs/heads/master
c: 9225806
h: refs/heads/master
i:
  20249: 50f5405
  20247: 0321539
v: v3
  • Loading branch information
Marcel Holtmann committed Feb 13, 2006
1 parent 8ed1baf commit b86e601
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 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: 7b005bd34c895ebeefd1c62f90a329730b88946b
refs/heads/master: 9225806386e398eeba46958a7befa017bda73f58
17 changes: 4 additions & 13 deletions trunk/drivers/bluetooth/bt3c_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -474,18 +474,6 @@ static int bt3c_hci_ioctl(struct hci_dev *hdev, unsigned int cmd, unsigned long
/* ======================== Card services HCI interaction ======================== */


static struct device *bt3c_device(void)
{
static struct device dev = {
.bus_id = "pcmcia",
};
kobject_set_name(&dev.kobj, "bt3c");
kobject_init(&dev.kobj);

return &dev;
}


static int bt3c_load_firmware(bt3c_info_t *info, unsigned char *firmware, int count)
{
char *ptr = (char *) firmware;
Expand Down Expand Up @@ -574,6 +562,7 @@ static int bt3c_open(bt3c_info_t *info)
{
const struct firmware *firmware;
struct hci_dev *hdev;
client_handle_t handle;
int err;

spin_lock_init(&(info->lock));
Expand Down Expand Up @@ -605,8 +594,10 @@ static int bt3c_open(bt3c_info_t *info)

hdev->owner = THIS_MODULE;

handle = info->link.handle;

/* Load firmware */
err = request_firmware(&firmware, "BT3CPCC.bin", bt3c_device());
err = request_firmware(&firmware, "BT3CPCC.bin", &handle_to_dev(handle));
if (err < 0) {
BT_ERR("Firmware request failed");
goto error;
Expand Down

0 comments on commit b86e601

Please sign in to comment.