diff options
Diffstat (limited to 'drivers/bluetooth/btwilink.c')
| -rw-r--r-- | drivers/bluetooth/btwilink.c | 9 | 
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/bluetooth/btwilink.c b/drivers/bluetooth/btwilink.c index 60abf596f60e..f038dba19e36 100644 --- a/drivers/bluetooth/btwilink.c +++ b/drivers/bluetooth/btwilink.c @@ -108,10 +108,8 @@ static long st_receive(void *priv_data, struct sk_buff *skb)  		return -EFAULT;  	} -	skb->dev = (void *) lhst->hdev; -  	/* Forward skb to HCI core layer */ -	err = hci_recv_frame(skb); +	err = hci_recv_frame(lhst->hdev, skb);  	if (err < 0) {  		BT_ERR("Unable to push skb to HCI core(%d)", err);  		return err; @@ -253,14 +251,11 @@ static int ti_st_close(struct hci_dev *hdev)  	return err;  } -static int ti_st_send_frame(struct sk_buff *skb) +static int ti_st_send_frame(struct hci_dev *hdev, struct sk_buff *skb)  { -	struct hci_dev *hdev;  	struct ti_st *hst;  	long len; -	hdev = (struct hci_dev *)skb->dev; -  	if (!test_bit(HCI_RUNNING, &hdev->flags))  		return -EBUSY;  |