lkml.org 
[lkml]   [2009]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v4 04/16] [loongson] pm: Remove redundant source code
Date
From: Wu Zhangjin <wuzj@lemote.com>

the implmentation of loongson2e_power_off and loongson2e_halt is
almostly the same, just reserve one of them.

Signed-off-by: Wu Zhangjin <wuzj@lemote.com>
---
arch/mips/lemote/lm2e/reset.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/arch/mips/lemote/lm2e/reset.c b/arch/mips/lemote/lm2e/reset.c
index 099387a..47ff506 100644
--- a/arch/mips/lemote/lm2e/reset.c
+++ b/arch/mips/lemote/lm2e/reset.c
@@ -28,14 +28,9 @@ static void loongson2e_halt(void)
while (1) ;
}

-static void loongson2e_power_off(void)
-{
- loongson2e_halt();
-}
-
void mips_reboot_setup(void)
{
_machine_restart = loongson2e_restart;
_machine_halt = loongson2e_halt;
- pm_power_off = loongson2e_power_off;
+ pm_power_off = loongson2e_halt;
}
--
1.6.2.1


\
 
 \ /
  Last update: 2009-07-02 17:23    [from the cache]
©2003-2011 Jasper Spaans