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@nvidia.com>
Signed-off-by: Colin Cross <ccross@android.com>
writel(wake_enb, pmc + PMC_WAKE_MASK);
}
+#ifdef CONFIG_PM
static void tegra_irq_handle_wake(void)
{
int wake;
generic_handle_irq(irq);
}
}
+#endif
static void tegra_mask(unsigned int irq)
{
}
}
+#ifdef CONFIG_PM
void tegra_irq_suspend(void)
{
tegra_legacy_irq_suspend();
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)