summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/include/mach
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2010-11-24 14:49:35 -0800
committerColin Cross <ccross@android.com>2010-11-24 21:49:11 -0800
commit745d9c84e59fbc8f49dbde78e8b3af24ce533929 (patch)
tree198ce057fffa5a5acdeb33d299ce8170f3d17672 /arch/arm/mach-tegra/include/mach
parentad42ec439870c1198bb263d3764d1f5cb516880a (diff)
ARM: tegra: dma: Add dma initialzation stub when compiled out
Change-Id: Iac01fa701342a5ed0bbbb1c6e5d38adb401f2d79 Signed-off-by: Colin Cross <ccross@android.com>
Diffstat (limited to 'arch/arm/mach-tegra/include/mach')
-rw-r--r--arch/arm/mach-tegra/include/mach/dma.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/dma.h b/arch/arm/mach-tegra/include/mach/dma.h
index f9b09cbd8166..d385b7a251be 100644
--- a/arch/arm/mach-tegra/include/mach/dma.h
+++ b/arch/arm/mach-tegra/include/mach/dma.h
@@ -156,6 +156,12 @@ int tegra_dma_cancel(struct tegra_dma_channel *ch);
int __init tegra_dma_init(void);
+#else /* !defined(CONFIG_TEGRA_SYSTEM_DMA) */
+static inline int tegra_dma_init(void)
+{
+ return 0;
+}
+
#endif
#endif