aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm/arch-omap
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2008-03-17 13:01:07 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-03-20 15:59:31 +0000
commiteec2beac278fe5dbf342e0e3f9e56fb64a429d46 (patch)
treed74a88d605a7a9147fd354dd01a6c84b416d5f57 /include/asm-arm/arch-omap
parent[ARM] 4865/1: Register the F75375 device in the GLAN Tank platform code (diff)
downloadlinux-dev-eec2beac278fe5dbf342e0e3f9e56fb64a429d46.tar.xz
linux-dev-eec2beac278fe5dbf342e0e3f9e56fb64a429d46.zip
[ARM] 4869/1: ARM: OMAP: Fix compile for mcbsp
Until DSP MMU code is merged, dsp_request_mem() does not exist. Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/arch-omap')
-rw-r--r--include/asm-arm/arch-omap/dsp_common.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/asm-arm/arch-omap/dsp_common.h b/include/asm-arm/arch-omap/dsp_common.h
index c61f868f24ee..da97736f3efa 100644
--- a/include/asm-arm/arch-omap/dsp_common.h
+++ b/include/asm-arm/arch-omap/dsp_common.h
@@ -24,11 +24,17 @@
#ifndef ASM_ARCH_DSP_COMMON_H
#define ASM_ARCH_DSP_COMMON_H
-#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);
+#else
+static inline int omap_dsp_request_mem(void)
+{
+ return 0;
+}
+#define omap_dsp_release_mem() do {} while (0)
#endif
#endif /* ASM_ARCH_DSP_COMMON_H */