xhci-mem: Use setup_timer
authorJulia Lawall <Julia.Lawall@lip6.fr>
Fri, 9 Jan 2015 14:06:30 +0000 (16:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jan 2015 18:05:47 +0000 (10:05 -0800)
commit9e08a03dc12a41ce695559f8c6d999aaf245b8be
treec67da13c1c531cd2d15419cad277a8b4acaa9d11
parentfc8abe02e5616817735e8a8de2ab37f6ce5e4f46
xhci-mem: Use setup_timer

Convert a call to init_timer and accompanying intializations of
the timer's data and function fields to a call to setup_timer.

A simplified version of the semantic match that fixes this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression t,f,d;
@@

-init_timer(&t);
+setup_timer(&t,f,d);
-t.data = d;
-t.function = f;
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-mem.c