From a3ebea99363e80fa9680c5fd9e5be3539259b494 Mon Sep 17 00:00:00 2001
From: Pantelis Antoniou <panto@antoniou-consulting.com>
Date: Fri, 4 Jan 2013 00:32:33 +0200
Subject: [PATCH 3/5] arm: Export cache flush management symbols when
 !MULTI_CACHE

When compiling a kernel without CONFIG_MULTI_CACHE enabled the
dma access functions end up not being exported. Fix it.

Signed-off-by: Pantelis Antoniou <panto@antoniou-consulting.com>
---
 arch/arm/kernel/setup.c |    9 +++++++++
 1 file changed, 9 insertions(+)

Index: linux-3.12.36-rt50-r4s2/arch/arm/kernel/setup.c
===================================================================
--- linux-3.12.36-rt50-r4s2.orig/arch/arm/kernel/setup.c
+++ linux-3.12.36-rt50-r4s2/arch/arm/kernel/setup.c
@@ -1084,3 +1084,12 @@ const struct seq_operations cpuinfo_op =
        .stop   = c_stop,
        .show   = c_show
 };
+
+/* export the cache management functions */
+#ifndef MULTI_CACHE
+
+EXPORT_SYMBOL(__glue(_CACHE,_dma_map_area));
+EXPORT_SYMBOL(__glue(_CACHE,_dma_unmap_area));
+EXPORT_SYMBOL(__glue(_CACHE,_dma_flush_range));
+
+#endif