ia64: Use setup_timer
authorVaishali Thakkar <vthakkar1994@gmail.com>
Thu, 11 Jun 2015 04:48:17 +0000 (10:18 +0530)
committerTony Luck <tony.luck@intel.com>
Mon, 15 Jun 2015 22:45:18 +0000 (15:45 -0700)
commit2587dc65e1b70617a1a369b26eb824ab1af1b9df
tree0030d9f7f287ab3fa5239f97e040f7f618fe7f46
parent511beeb5880eb1cf71ede7ce0f5ab4b34c1dd986
ia64: Use setup_timer

Use the timer API function setup_timer instead of structure field
assignments to initialize a timer.

A simplified version of the Coccinelle semantic patch that performs
this transformation is as follows:

@change@
expression e1, e2, a;
@@

-init_timer(&e1);
+setup_timer(&e1, a, 0UL);
... when != a = e2
-e1.function = a;

Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/mca.c