mirror of https://gitee.com/openkylin/linux.git
Bluetooth: hci_h5: 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
6e5ffd0f45
commit
a1e0d04396
|
@ -204,9 +204,7 @@ static int h5_open(struct hci_uart *hu)
|
||||||
|
|
||||||
h5_reset_rx(h5);
|
h5_reset_rx(h5);
|
||||||
|
|
||||||
init_timer(&h5->timer);
|
setup_timer(&h5->timer, h5_timed_event, (unsigned long)hu);
|
||||||
h5->timer.function = h5_timed_event;
|
|
||||||
h5->timer.data = (unsigned long)hu;
|
|
||||||
|
|
||||||
h5->tx_win = H5_TX_WIN_MAX;
|
h5->tx_win = H5_TX_WIN_MAX;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue