Commit 085eea14 authored by Stephen Boyd's avatar Stephen Boyd Committed by David Brown

ARM: msm: Remove msm_hw_reset_hook

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: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarDavid Brown <davidb@codeaurora.org>
parent 28a33cbc
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#include <mach/board.h> #include <mach/board.h>
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/system.h>
#include "board-mahimahi.h" #include "board-mahimahi.h"
#include "devices.h" #include "devices.h"
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <asm/mach/map.h> #include <asm/mach/map.h>
#include <asm/mach/flash.h> #include <asm/mach/flash.h>
#include <mach/system.h>
#include <mach/vreg.h> #include <mach/vreg.h>
#include <mach/board.h> #include <mach/board.h>
......
/* 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);
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include <linux/io.h> #include <linux/io.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <mach/msm_iomap.h> #include <mach/msm_iomap.h>
#include <mach/system.h>
#include "proc_comm.h" #include "proc_comm.h"
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#include <linux/delay.h> #include <linux/delay.h>
#include <mach/msm_smd.h> #include <mach/msm_smd.h>
#include <mach/system.h>
#include "smd_private.h" #include "smd_private.h"
#include "proc_comm.h" #include "proc_comm.h"
...@@ -39,8 +38,6 @@ ...@@ -39,8 +38,6 @@
#define CONFIG_QDSP6 1 #define CONFIG_QDSP6 1
#endif #endif
void (*msm_hw_reset_hook)(void);
#define MODULE_NAME "msm_smd" #define MODULE_NAME "msm_smd"
enum { enum {
...@@ -101,10 +98,6 @@ static void handle_modem_crash(void) ...@@ -101,10 +98,6 @@ static void handle_modem_crash(void)
pr_err("ARM9 has CRASHED\n"); pr_err("ARM9 has CRASHED\n");
smd_diag(); 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 */ /* in this case the modem or watchdog should reboot us */
for (;;) for (;;)
; ;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment