diff options
author | Prasanna Karthik <pkarthik@intrinsyc.com> | 2016-10-18 19:30:10 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2016-11-27 07:41:05 +0100 |
commit | a1e0d04396684a38fd4cdaf084d38bf2cd5a2253 (patch) | |
tree | 7bf45452467166f2b369d3325c8bb824e314884d /drivers/bluetooth | |
parent | Bluetooth: hci_bcsp: Use setup_timer Kernel API instead of init_timer (diff) | |
download | linux-a1e0d04396684a38fd4cdaf084d38bf2cd5a2253.tar.xz linux-a1e0d04396684a38fd4cdaf084d38bf2cd5a2253.zip |
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>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/hci_h5.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/bluetooth/hci_h5.c b/drivers/bluetooth/hci_h5.c index 0879d64b1caf..90d0456b6744 100644 --- a/drivers/bluetooth/hci_h5.c +++ b/drivers/bluetooth/hci_h5.c @@ -204,9 +204,7 @@ static int h5_open(struct hci_uart *hu) h5_reset_rx(h5); - init_timer(&h5->timer); - h5->timer.function = h5_timed_event; - h5->timer.data = (unsigned long)hu; + setup_timer(&h5->timer, h5_timed_event, (unsigned long)hu); h5->tx_win = H5_TX_WIN_MAX; |