msm: Add log collection ability on a watchdog reset after a kernel panic

Debug logs dumped by SDI are not available if a watchdog reset occurs
after a kernel panic. Add support for these logs to be available.

Change-Id: If6ebf44b6205399599a6bff48d422908e37304c3
Signed-off-by: Pushkar Joshi <pushkarj@codeaurora.org>
diff --git a/arch/arm/mach-msm/msm_memory_dump.c b/arch/arm/mach-msm/msm_memory_dump.c
index 154b4fe..e4e9a44 100644
--- a/arch/arm/mach-msm/msm_memory_dump.c
+++ b/arch/arm/mach-msm/msm_memory_dump.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012, Code Aurora Forum. All rights reserved.
+/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 and
@@ -13,7 +13,6 @@
 #include <linux/slab.h>
 #include <linux/io.h>
 #include <linux/init.h>
-#include <linux/notifier.h>
 #include <linux/export.h>
 #include <mach/msm_iomap.h>
 #include <mach/msm_memory_dump.h>
@@ -25,17 +24,6 @@
 
 static struct msm_memory_dump mem_dump_data;
 
-static int msm_memory_dump_panic(struct notifier_block *this,
-				unsigned long event, void *ptr)
-{
-	writel_relaxed(0, MSM_IMEM_BASE + DUMP_TABLE_OFFSET);
-	return 0;
-}
-
-static struct notifier_block msm_memory_dump_blk = {
-	.notifier_call  = msm_memory_dump_panic,
-};
-
 int msm_dump_table_register(struct msm_client_dump *client_entry)
 {
 	struct msm_client_dump *entry;
@@ -75,8 +63,6 @@
 	 */
 	writel_relaxed(mem_dump_data.dump_table_phys,
 				MSM_DBG_IMEM_BASE + DUMP_TABLE_OFFSET);
-	atomic_notifier_chain_register(&panic_notifier_list,
-						&msm_memory_dump_blk);
 	printk(KERN_INFO "MSM Memory Dump table set up\n");
 	return 0;
 }