Commit 6e5ffd0f authored by Prasanna Karthik's avatar Prasanna Karthik Committed by Marcel Holtmann

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: default avatarPrasanna Karthik <pkarthik@intrinsyc.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 21fcf572
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment