forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
21fcf57271
commit
6e5ffd0f45
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user