projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21fcf57
)
Bluetooth: hci_bcsp: Use setup_timer Kernel API instead of init_timer
author
Prasanna Karthik
<pkarthik@intrinsyc.com>
Mon, 17 Oct 2016 18:31:08 +0000
(18:31 +0000)
committer
Marcel 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
patch
|
blob
|
history
diff --git
a/drivers/bluetooth/hci_bcsp.c
b/drivers/bluetooth/hci_bcsp.c
index
a2c921f
..
910ec96
100644
(file)
--- a/
drivers/bluetooth/hci_bcsp.c
+++ b/
drivers/bluetooth/hci_bcsp.c
@@
-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;