MLK-14947-1 gpc: imx: empty imx_gpc_mf_request_on if imx gpc is not used
authorLi Jun <jun.li@nxp.com>
Thu, 18 May 2017 16:03:49 +0000 (00:03 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:22:23 +0000 (15:22 -0500)
Empty imx_gpc_mf_request_on() if imx gpc is not available to pass compile
on i.mx8x.

Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
include/linux/imx_gpc.h

index 2cffa4b..46a1f08 100644 (file)
 #ifndef __LINUX_IMX_GPC_H__
 #define __LINUX_IMX_GPC_H__
 
+#ifdef CONFIG_HAVE_IMX_GPC
 int imx_gpc_mf_request_on(unsigned int irq, unsigned int on);
+#else
+static int imx_gpc_mf_request_on(unsigned int irq, unsigned int on)
+{
+       return 0;
+}
+#endif
+
 #endif /* __LINUX_IMX_GPC_H__ */