msm: Pull cache dumping out of the board file

The cache dumping device belongs in the devices file with
the rest of the platorm devices. Pull it out and add appropriate
definitions in headers for access. Also remove CONFIG_MSM_CACHE_DUMP
macros around the device and code since platform device matching
will do the proper thing if CONFIG_MSM_CACHE_DUMP is not defined.

Change-Id: I713378b36c166f611e723e4b1ee0d7bdd8bf6497
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
diff --git a/arch/arm/mach-msm/devices-8960.c b/arch/arm/mach-msm/devices-8960.c
index 42a2820..ef5881f 100644
--- a/arch/arm/mach-msm/devices-8960.c
+++ b/arch/arm/mach-msm/devices-8960.c
@@ -33,6 +33,7 @@
 #include <mach/msm_smd.h>
 #include <mach/msm_dcvs.h>
 #include <mach/msm_rtb.h>
+#include <mach/msm_cache_dump.h>
 #include <sound/msm-dai-q6.h>
 #include <sound/apr_audio.h>
 #include <mach/msm_tsif.h>
@@ -3619,3 +3620,15 @@
 		.platform_data = &msm8960_rtb_pdata,
 	},
 };
+
+struct msm_cache_dump_platform_data msm8960_cache_dump_pdata = {
+	.l2_size = L2_BUFFER_SIZE,
+};
+
+struct platform_device msm8960_cache_dump_device = {
+	.name           = "msm_cache_dump",
+	.id             = -1,
+	.dev            = {
+		.platform_data = &msm8960_cache_dump_pdata,
+	},
+};