xhci: 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. Cc: Mathias Nyman <mathias.nyman@intel.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: linux-usb@vger.kernel.org Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
707a123d7a
commit
66a4550308
@@ -800,8 +800,8 @@ void xhci_free_stream_info(struct xhci_hcd *xhci,
|
||||
static void xhci_init_endpoint_timer(struct xhci_hcd *xhci,
|
||||
struct xhci_virt_ep *ep)
|
||||
{
|
||||
setup_timer(&ep->stop_cmd_timer, xhci_stop_endpoint_command_watchdog,
|
||||
(unsigned long)ep);
|
||||
timer_setup(&ep->stop_cmd_timer, xhci_stop_endpoint_command_watchdog,
|
||||
0);
|
||||
ep->xhci = xhci;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user