summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWu Zhangjin <wuzj@lemote.com>2009-07-02 23:20:56 +0800
committerRalf Baechle <ralf@linux-mips.org>2009-09-17 20:07:45 +0200
commit8f0de87fa97667fa05c7bc938396ec759f021a21 (patch)
tree6638f3494830b150ad928da7987c426653e7a91b
parentf6a2740d0c1b3fd0d3cc8ec17e232f82f2d8b14c (diff)
downloadlinux-8f0de87fa97667fa05c7bc938396ec759f021a21.tar.gz
linux-8f0de87fa97667fa05c7bc938396ec759f021a21.tar.bz2
linux-8f0de87fa97667fa05c7bc938396ec759f021a21.zip
MIPS: Loongson: pm: Remove redundant source code
The implmentation of loongson2e_power_off and loongson2e_halt is almostly the same, just preserve one of them. Signed-off-by: Wu Zhangjin <wuzj@lemote.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--arch/mips/lemote/lm2e/reset.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/mips/lemote/lm2e/reset.c b/arch/mips/lemote/lm2e/reset.c
index 2e64bf6929e7..a6499a200788 100644
--- a/arch/mips/lemote/lm2e/reset.c
+++ b/arch/mips/lemote/lm2e/reset.c
@@ -29,16 +29,11 @@ static void loongson2e_halt(void)
while (1) ;
}
-static void loongson2e_power_off(void)
-{
- loongson2e_halt();
-}
-
static int __init mips_reboot_setup(void)
{
_machine_restart = loongson2e_restart;
_machine_halt = loongson2e_halt;
- pm_power_off = loongson2e_power_off;
+ pm_power_off = loongson2e_halt;
return 0;
}