From: Wu Zhangjin Date: Thu, 2 Jul 2009 15:20:56 +0000 (+0800) Subject: MIPS: Loongson: pm: Remove redundant source code X-Git-Tag: v2.6.32-rc1~658^2~34 X-Git-Url: http://ftp.safe.ca/?a=commitdiff_plain;h=8f0de87fa97667fa05c7bc938396ec759f021a21;p=safe%2Fjmp%2Flinux-2.6 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 Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/lemote/lm2e/reset.c b/arch/mips/lemote/lm2e/reset.c index 2e64bf6..a6499a2 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; }