]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/pcmcia/yenta_socket.c
pcmcia: Use setup_timer and mod_timer
authorVaishali Thakkar <vthakkar1994@gmail.com>
Wed, 11 Feb 2015 10:45:31 +0000 (16:15 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Mar 2015 20:31:43 +0000 (21:31 +0100)
commit03b225b16d75bccf9bc4d82607964a08148adf61
treefbe79c549de0e69f02b8528df69067a8bfd7a8e6
parentdae6cdabe45baecfcfd02fbf11d97bb645450fc6
pcmcia: Use setup_timer and mod_timer

This patch introduces the use of functions setup_timer
and mod_timer.

This is done using Coccinelle and semantic patch used
for this as follows:

// <smpl>
@@
expression x,y,z,a,b;
@@

-init_timer (&x);
+setup_timer (&x, y, z);
+mod_timer (&a, b);
-x.function = y;
-x.data = z;
-x.expires = b;
-add_timer(&a);

// </smpl>

Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pcmcia/pd6729.c
drivers/pcmcia/yenta_socket.c