summaryrefslogtreecommitdiff
path: root/arch/blackfin/cpu/reset.c
diff options
context:
space:
mode:
authorKyle Moffett <Kyle.D.Moffett@boeing.com>2011-03-07 12:37:30 -0500
committerMike Frysinger <vapier@gentoo.org>2011-04-08 00:44:27 -0400
commiteed1a7b1cfccd427d940a281e21000d8a2f669aa (patch)
tree5cbd365a50e8168084d9bf95644a4ae6072c9adb /arch/blackfin/cpu/reset.c
parenta91eb2c56a54155f6dacca392acb621b43ade84a (diff)
downloadu-boot-imx-eed1a7b1cfccd427d940a281e21000d8a2f669aa.zip
u-boot-imx-eed1a7b1cfccd427d940a281e21000d8a2f669aa.tar.gz
u-boot-imx-eed1a7b1cfccd427d940a281e21000d8a2f669aa.tar.bz2
Blackfin: replace "bfin_reset_or_hang()" with "panic()"
The bfin_reset_or_hang function unnecessarily duplicates the panic() logic based on CONFIG_PANIC_HANG. This patch deletes 20 lines of code and just calls panic() instead. This also makes the following generic-restart conversion patch simpler. Signed-off-by: Kyle Moffett <Kyle.D.Moffett@boeing.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/cpu/reset.c')
-rw-r--r--arch/blackfin/cpu/reset.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/arch/blackfin/cpu/reset.c b/arch/blackfin/cpu/reset.c
index 164afde..9307e9f 100644
--- a/arch/blackfin/cpu/reset.c
+++ b/arch/blackfin/cpu/reset.c
@@ -80,27 +80,11 @@ static void bfin_reset(void)
* PC relative call with a 25 bit immediate. This is not enough
* to get us from the top of SDRAM into L1.
*/
-__attribute__ ((__noreturn__))
-static inline void bfin_reset_trampoline(void)
+int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
if (board_reset)
board_reset();
while (1)
asm("jump (%0);" : : "a" (bfin_reset));
-}
-
-__attribute__ ((__noreturn__))
-void bfin_reset_or_hang(void)
-{
-#ifdef CONFIG_PANIC_HANG
- hang();
-#else
- bfin_reset_trampoline();
-#endif
-}
-
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
-{
- bfin_reset_trampoline();
return 0;
}