]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Fix compile for mcbsp
authorTony Lindgren <tony@atomide.com>
Mon, 17 Mar 2008 08:05:40 +0000 (10:05 +0200)
committerTony Lindgren <tony@atomide.com>
Mon, 17 Mar 2008 08:05:40 +0000 (10:05 +0200)
If MMU fwk is not selected, compile fails otherwise.

Signed-off-by: Tony Lindgren <tony@atomide.com>
include/asm-arm/arch-omap/dsp_common.h

index fa8f3a65f6d0cb13266718dff386bd5cdeaa2bfc..e515801b4b839d8df773210a81ead6d1511bbd1b 100644 (file)
@@ -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;