scsi: bnx2i: Convert timers to use timer_setup()
authorKees Cook <keescook@chromium.org>
Tue, 22 Aug 2017 23:38:10 +0000 (16:38 -0700)
committerKees Cook <keescook@chromium.org>
Fri, 27 Oct 2017 09:22:00 +0000 (02:22 -0700)
commitabef751056130c90199e3bfc32916715795cde39
tree3de8aa41f3651a5f8da35f0ca04774dbd42e63fc
parentb386eec6b0af30c947bf439bfabffb8fd6ab5fc0
scsi: bnx2i: Convert timers to use timer_setup()

In preparation for unconditionally passing the struct timer_list pointer to
all timer callbacks, switch to using the new timer_setup() and from_timer()
to pass the timer pointer explicitly.

There was a seemingly missing call to initialize the timer in one handler,
so this was added to remove the open-coded initialization.

Cc: QLogic-Storage-Upstream@qlogic.com
Cc: "James E.J. Bottomley" <jejb@linux.vnet.ibm.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: linux-scsi@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/bnx2i/bnx2i.h
drivers/scsi/bnx2i/bnx2i_hwi.c
drivers/scsi/bnx2i/bnx2i_iscsi.c