[PATCH] ARM: tegra: irq: protect irq suspend with CONFIG_PM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Protect irq suspend/resume functions behind #ifdef CONFIG_PM.
This prevents a link error if CONFIG_PM is turned off.

Signed-off-by: Allen Martin <amartin@xxxxxxxxxx>
---
 arch/arm/mach-tegra/irq.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-tegra/irq.c b/arch/arm/mach-tegra/irq.c
index 458f9c8..47b7064 100644
--- a/arch/arm/mach-tegra/irq.c
+++ b/arch/arm/mach-tegra/irq.c
@@ -146,6 +146,7 @@ void tegra_set_lp0_wake_pads(u32 wake_enb, u32 wake_level, u32 wake_any)
        writel(wake_enb, pmc + PMC_WAKE_MASK);
 }

+#ifdef CONFIG_PM
 static void tegra_irq_handle_wake(void)
 {
        int wake;
@@ -174,6 +175,7 @@ static void tegra_irq_handle_wake(void)
                generic_handle_irq(irq);
        }
 }
+#endif

 static void tegra_mask(unsigned int irq)
 {
@@ -251,6 +253,7 @@ void __init tegra_init_irq(void)
        }
 }

+#ifdef CONFIG_PM
 void tegra_irq_suspend(void)
 {
        tegra_legacy_irq_suspend();
@@ -261,6 +264,7 @@ void tegra_irq_resume(void)
        tegra_legacy_irq_resume();
        tegra_irq_handle_wake();
 }
+#endif

 #ifdef CONFIG_DEBUG_FS
 static int tegra_wake_irq_debug_show(struct seq_file *s, void *data)
--
1.7.2.3

--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux