Skip to content

Commit

Permalink
ARM: msm: Remove msm_hw_reset_hook
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Boyd authored and David Brown committed Sep 13, 2012
1 parent 28a33cb commit 085eea1
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 29 deletions.
1 change: 0 additions & 1 deletion arch/arm/mach-msm/board-mahimahi.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

#include <mach/board.h>
#include <mach/hardware.h>
#include <mach/system.h>

#include "board-mahimahi.h"
#include "devices.h"
Expand Down
1 change: 0 additions & 1 deletion arch/arm/mach-msm/board-sapphire.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
19 changes: 0 additions & 19 deletions arch/arm/mach-msm/include/mach/system.h

This file was deleted.

1 change: 0 additions & 1 deletion arch/arm/mach-msm/proc_comm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
7 changes: 0 additions & 7 deletions arch/arm/mach-msm/smd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -39,8 +38,6 @@
#define CONFIG_QDSP6 1
#endif

void (*msm_hw_reset_hook)(void);

#define MODULE_NAME "msm_smd"

enum {
Expand Down Expand Up @@ -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 (;;)
;
Expand Down

0 comments on commit 085eea1

Please sign in to comment.