[PATCH 2/3] ARM: i.MX: tzic: Remove #ifdef CONFIG_PM

Alexander Shiyan shc_work at mail.ru
Fri May 30 23:01:33 PDT 2014


Suspend/Resume functions are not called by generic irqchip if PM
is not enabled. This patch removes excess #ifdef CONFIG_PM from
i.MX TZIC driver, so these functions will always be compiled in,
that increase compile coverage of this driver.

Signed-off-by: Alexander Shiyan <shc_work at mail.ru>
---
 arch/arm/mach-imx/tzic.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/arch/arm/mach-imx/tzic.c b/arch/arm/mach-imx/tzic.c
index b5fc0c7..534431e 100644
--- a/arch/arm/mach-imx/tzic.c
+++ b/arch/arm/mach-imx/tzic.c
@@ -76,7 +76,6 @@ static int tzic_set_irq_fiq(unsigned int irq, unsigned int type)
 #define tzic_set_irq_fiq NULL
 #endif
 
-#ifdef CONFIG_PM
 static void tzic_irq_suspend(struct irq_data *d)
 {
 	struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d);
@@ -93,11 +92,6 @@ static void tzic_irq_resume(struct irq_data *d)
 		     tzic_base + TZIC_WAKEUP0(idx));
 }
 
-#else
-#define tzic_irq_suspend NULL
-#define tzic_irq_resume NULL
-#endif
-
 static struct mxc_extra_irq tzic_extra_irq = {
 #ifdef CONFIG_FIQ
 	.set_irq_fiq = tzic_set_irq_fiq,
-- 
1.8.5.5




More information about the linux-arm-kernel mailing list