From d6beb3da5e4dcaf809fdd405f4817c4e6b33599f Mon Sep 17 00:00:00 2001 From: Jeff Ohlstein Date: Fri, 28 Jan 2011 15:14:16 -0800 Subject: [PATCH] msm: dma: support using dma from modules Signed-off-by: Jeff Ohlstein Signed-off-by: David Brown --- arch/arm/mach-msm/dma.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-msm/dma.c b/arch/arm/mach-msm/dma.c index 8e4d46e37fa8..1f487b829ac8 100644 --- a/arch/arm/mach-msm/dma.c +++ b/arch/arm/mach-msm/dma.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #define MSM_DMOV_CHANNEL_COUNT 16 @@ -52,6 +53,7 @@ void msm_dmov_stop_cmd(unsigned id, struct msm_dmov_cmd *cmd, int graceful) { writel((graceful << 31), DMOV_FLUSH0(id)); } +EXPORT_SYMBOL(msm_dmov_stop_cmd); void msm_dmov_enqueue_cmd(unsigned id, struct msm_dmov_cmd *cmd) { @@ -90,6 +92,7 @@ void msm_dmov_enqueue_cmd(unsigned id, struct msm_dmov_cmd *cmd) } spin_unlock_irqrestore(&msm_dmov_lock, irq_flags); } +EXPORT_SYMBOL(msm_dmov_enqueue_cmd); void msm_dmov_flush(unsigned int id) { @@ -102,6 +105,7 @@ void msm_dmov_flush(unsigned int id) } spin_unlock_irqrestore(&msm_dmov_lock, flags); } +EXPORT_SYMBOL(msm_dmov_flush); struct msm_dmov_exec_cmdptr_cmd { struct msm_dmov_cmd dmov_cmd; @@ -148,7 +152,7 @@ int msm_dmov_exec_cmd(unsigned id, unsigned int cmdptr) PRINT_FLOW("dmov_exec_cmdptr(%d, %x) done\n", id, cmdptr); return 0; } - +EXPORT_SYMBOL(msm_dmov_exec_cmd); static irqreturn_t msm_datamover_irq_handler(int irq, void *dev_id) { -- 2.39.5