]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Bluetooth: hci_bcsp: Use setup_timer Kernel API instead of init_timer
authorPrasanna Karthik <pkarthik@intrinsyc.com>
Mon, 17 Oct 2016 18:31:08 +0000 (18:31 +0000)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 27 Nov 2016 06:41:05 +0000 (07:41 +0100)
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>
drivers/bluetooth/hci_bcsp.c

index a2c921faaa12e537fbdd170bbd7cb1167f5ceb7a..910ec968f022ae6d141f28cf709d9b18a8e9d59f 100644 (file)
@@ -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;