From cbc0cff80e5ff9ded05edcce813394003e0a7e80 Mon Sep 17 00:00:00 2001 From: Tony Lindgren Date: Mon, 17 Mar 2008 10:05:40 +0200 Subject: [PATCH] ARM: OMAP: Fix compile for mcbsp If MMU fwk is not selected, compile fails otherwise. Signed-off-by: Tony Lindgren --- include/asm-arm/arch-omap/dsp_common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/asm-arm/arch-omap/dsp_common.h b/include/asm-arm/arch-omap/dsp_common.h index fa8f3a65f6d..e515801b4b8 100644 --- a/include/asm-arm/arch-omap/dsp_common.h +++ b/include/asm-arm/arch-omap/dsp_common.h @@ -49,12 +49,12 @@ struct omap_dsp { int initialized; }; -#ifdef CONFIG_ARCH_OMAP1 +if defined(CONFIG_ARCH_OMAP1) && defined(CONFIG_OMAP_MMU_FWK) extern void omap_dsp_request_mpui(void); extern void omap_dsp_release_mpui(void); extern int omap_dsp_request_mem(void); extern int omap_dsp_release_mem(void); -#elif defined(CONFIG_ARCH_OMAP2) +#else static inline int omap_dsp_request_mem(void) { return 0; -- 2.41.1