Fix build warning when CONFIG_PM_SLEEP=n, the warning message is:
drivers/irqchip/irq-imx-irqsteer.c:104:13: warning: ‘imx_irqsteer_init’ defined but not used [-Wunused-function]
static void imx_irqsteer_init(struct irqsteer_irqchip_data *irqsteer_data)
^~~~~~~~~~~~~~~~~
Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
.xlate = irq_domain_xlate_twocell,
};
+#ifdef CONFIG_PM_SLEEP
static void imx_irqsteer_init(struct irqsteer_irqchip_data *irqsteer_data)
{
/* enable channel 1 in default */
*/
irqsteer_data->inited = true;
}
+#endif
static void imx_irqsteer_update_irqstat(struct irqsteer_irqchip_data *irqsteer_data)
{