ARM: msm: Remove msm_hw_reset_hook
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 22 Aug 2012 22:55:43 +0000 (15:55 -0700)
committerDavid Brown <davidb@codeaurora.org>
Thu, 13 Sep 2012 17:43:57 +0000 (10:43 -0700)
This reset hook is never assigned and is dead code. Remove it so
we have one less header file in the mach directory.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
arch/arm/mach-msm/board-mahimahi.c
arch/arm/mach-msm/board-sapphire.c
arch/arm/mach-msm/include/mach/system.h [deleted file]
arch/arm/mach-msm/proc_comm.c
arch/arm/mach-msm/smd.c

index cf1f89a5dc622ad55bc28bca21275913c494ab88..df00bc03ce7434e32119c14283c780880dfa2efa 100644 (file)
@@ -30,7 +30,6 @@
 
 #include <mach/board.h>
 #include <mach/hardware.h>
-#include <mach/system.h>
 
 #include "board-mahimahi.h"
 #include "devices.h"
index 2e569ab10eef3f253b4f429d5b01b12dddaf933a..b7b0fc7e3278fcc7aa3c1078b2fa3a572bd44387 100644 (file)
@@ -27,7 +27,6 @@
 #include <asm/mach/arch.h>
 #include <asm/mach/map.h>
 #include <asm/mach/flash.h>
-#include <mach/system.h>
 #include <mach/vreg.h>
 #include <mach/board.h>
 
diff --git a/arch/arm/mach-msm/include/mach/system.h b/arch/arm/mach-msm/include/mach/system.h
deleted file mode 100644 (file)
index f5fb2ec..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-/* arch/arm/mach-msm/include/mach/system.h
- *
- * Copyright (C) 2007 Google, Inc.
- *
- * This software is licensed under the terms of the GNU General Public
- * License version 2, as published by the Free Software Foundation, and
- * may be copied, distributed, and modified under those terms.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- */
-
-/* low level hardware reset hook -- for example, hitting the
- * PSHOLD line on the PMIC to hard reset the system
- */
-extern void (*msm_hw_reset_hook)(void);
index 9980dc736e7bb690c31f93560efcdd2925d74ffe..8f1eecd881863ffe304bb760bba99bc5b7cdac6a 100644 (file)
@@ -19,7 +19,6 @@
 #include <linux/io.h>
 #include <linux/spinlock.h>
 #include <mach/msm_iomap.h>
-#include <mach/system.h>
 
 #include "proc_comm.h"
 
index 657be73297db9361830633f01f061a1b9acdca28..84183ed2ef79214f48d1f79cb1b8e1b0d0da8696 100644 (file)
@@ -30,7 +30,6 @@
 #include <linux/delay.h>
 
 #include <mach/msm_smd.h>
-#include <mach/system.h>
 
 #include "smd_private.h"
 #include "proc_comm.h"
@@ -39,8 +38,6 @@
 #define CONFIG_QDSP6 1
 #endif
 
-void (*msm_hw_reset_hook)(void);
-
 #define MODULE_NAME "msm_smd"
 
 enum {
@@ -101,10 +98,6 @@ static void handle_modem_crash(void)
        pr_err("ARM9 has CRASHED\n");
        smd_diag();
 
-       /* hard reboot if possible */
-       if (msm_hw_reset_hook)
-               msm_hw_reset_hook();
-
        /* in this case the modem or watchdog should reboot us */
        for (;;)
                ;
This page took 0.029782 seconds and 5 git commands to generate.