summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorPrasanna Karthik <pkarthik@intrinsyc.com>2016-10-17 20:31:08 +0200
committerMarcel Holtmann <marcel@holtmann.org>2016-11-27 07:41:05 +0100
commit6e5ffd0f4509f7331ecebf12463f4eb5a213cf4a (patch)
tree95b4e0d3de88acd34b853f3612897ff6ae390d26 /drivers/bluetooth
parentBluetooth: __ variants of u8 and friends are not neccessary inside kernel (diff)
downloadlinux-6e5ffd0f4509f7331ecebf12463f4eb5a213cf4a.tar.xz
linux-6e5ffd0f4509f7331ecebf12463f4eb5a213cf4a.zip
Bluetooth: hci_bcsp: Use setup_timer Kernel API instead of init_timer
Replace init_timer function with setup_timer reported by coccinelle Signed-off-by: Prasanna Karthik <pkarthik@intrinsyc.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r--drivers/bluetooth/hci_bcsp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/bluetooth/hci_bcsp.c b/drivers/bluetooth/hci_bcsp.c
index a2c921faaa12..910ec968f022 100644
--- a/drivers/bluetooth/hci_bcsp.c
+++ b/drivers/bluetooth/hci_bcsp.c
@@ -733,9 +733,7 @@ static int bcsp_open(struct hci_uart *hu)
skb_queue_head_init(&bcsp->rel);
skb_queue_head_init(&bcsp->unrel);
- init_timer(&bcsp->tbcsp);
- bcsp->tbcsp.function = bcsp_timed_event;
- bcsp->tbcsp.data = (u_long)hu;
+ setup_timer(&bcsp->tbcsp, bcsp_timed_event, (u_long)hu);
bcsp->rx_state = BCSP_W4_PKT_DELIMITER;