ARM: pxa: Use setup_timer
authorVaishali Thakkar <vthakkar1994@gmail.com>
Thu, 11 Jun 2015 05:27:35 +0000 (10:57 +0530)
committerRobert Jarzmik <robert.jarzmik@free.fr>
Sat, 18 Jul 2015 10:16:43 +0000 (12:16 +0200)
commit6d6db340a7e832dc18a6a95d9f9fc79d03ff959e
treedb7b36fcb8d731ecb2b435d5d73d9ea4fb16e5a5
parent9754c8ef1f54bff1e1448a1a02039681a4a98fa0
ARM: pxa: 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: Robert Jarzmik <robert.jarzmik@free.fr>
arch/arm/mach-pxa/sharpsl_pm.c