DORMANTno replies

[PATCH] arm: mach-footbridge: use setup_timer() helper.

From: Allen Pais <hidden>
Date: 2017-09-22 11:40:57
Subsystem: arm port, arm/footbridge architecture, the rest · Maintainers: Russell King, Linus Torvalds

   Use setup_timer function instead of initializing timer with the
   function and data fields.

Signed-off-by: Allen Pais <redacted>
---
 arch/arm/mach-footbridge/dc21285.c | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/arch/arm/mach-footbridge/dc21285.c b/arch/arm/mach-footbridge/dc21285.c
index 96a3d73..f8d011b 100644
--- a/arch/arm/mach-footbridge/dc21285.c
+++ b/arch/arm/mach-footbridge/dc21285.c
@@ -323,13 +323,8 @@ void __init dc21285_preinit(void)
 		*CSR_PCICMD = (*CSR_PCICMD & 0xffff) | PCICMD_ERROR_BITS;
 	}
 
-	init_timer(&serr_timer);
-	init_timer(&perr_timer);
-
-	serr_timer.data = IRQ_PCI_SERR;
-	serr_timer.function = dc21285_enable_error;
-	perr_timer.data = IRQ_PCI_PERR;
-	perr_timer.function = dc21285_enable_error;
+	setup_timer(&serr_timer, dc21285_enable_error, IRQ_PCI_SERR);
+	setup_timer(&perr_timer, dc21285_enable_error, IRQ_PCI_PERR);
 
 	/*
 	 * We don't care if these fail.
-- 
2.7.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help