mirror of https://gitee.com/openkylin/linux.git
Bluetooth: bluecard: use setup_timer
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang <geliangtang@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
parent
9dae2e0303
commit
459848564f
|
@ -695,9 +695,8 @@ static int bluecard_open(struct bluecard_info *info)
|
|||
|
||||
spin_lock_init(&(info->lock));
|
||||
|
||||
init_timer(&(info->timer));
|
||||
info->timer.function = &bluecard_activity_led_timeout;
|
||||
info->timer.data = (u_long)info;
|
||||
setup_timer(&(info->timer), &bluecard_activity_led_timeout,
|
||||
(u_long)info);
|
||||
|
||||
skb_queue_head_init(&(info->txq));
|
||||
|
||||
|
|
Loading…
Reference in New Issue