diff options
author | Li Jun <jun.li@nxp.com> | 2017-05-19 00:03:49 +0800 |
---|---|---|
committer | Leonard Crestez <leonard.crestez@nxp.com> | 2018-08-24 12:41:33 +0300 |
commit | ce3ff4d21913e004f40fe4be738db258f7c39d08 (patch) | |
tree | 8dd0089495d812e6e45a4ae1d6e7fbe68d8ce728 /include/linux/imx_gpc.h | |
parent | 96e8a9e735204918730306435728728c1d9812ce (diff) |
MLK-14947-1 gpc: imx: empty imx_gpc_mf_request_on if imx gpc is not used
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>
Diffstat (limited to 'include/linux/imx_gpc.h')
-rw-r--r-- | include/linux/imx_gpc.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/imx_gpc.h b/include/linux/imx_gpc.h index 2cffa4be22aa..46a1f08472bb 100644 --- a/include/linux/imx_gpc.h +++ b/include/linux/imx_gpc.h @@ -21,5 +21,13 @@ #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__ */ |