Commit 7c92357c authored by Geliang Tang's avatar Geliang Tang Committed by Tejun Heo

libata: use setup_deferrable_timer

Use setup_deferrable_timer() instead of init_timer_deferrable() to
simplify the code.
Signed-off-by: default avatarGeliang Tang <geliangtang@gmail.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent b2a4b786
...@@ -5902,9 +5902,9 @@ struct ata_port *ata_port_alloc(struct ata_host *host) ...@@ -5902,9 +5902,9 @@ struct ata_port *ata_port_alloc(struct ata_host *host)
INIT_LIST_HEAD(&ap->eh_done_q); INIT_LIST_HEAD(&ap->eh_done_q);
init_waitqueue_head(&ap->eh_wait_q); init_waitqueue_head(&ap->eh_wait_q);
init_completion(&ap->park_req_pending); init_completion(&ap->park_req_pending);
init_timer_deferrable(&ap->fastdrain_timer); setup_deferrable_timer(&ap->fastdrain_timer,
ap->fastdrain_timer.function = ata_eh_fastdrain_timerfn; ata_eh_fastdrain_timerfn,
ap->fastdrain_timer.data = (unsigned long)ap; (unsigned long)ap);
ap->cbl = ATA_CBL_NONE; ap->cbl = ATA_CBL_NONE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment