Commit 8f0de87fa97667fa05c7bc938396ec759f021a21
Committed by
Ralf Baechle
1 parent
f6a2740d0c
Exists in
master
and in
4 other branches
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>
Showing 1 changed file with 1 additions and 6 deletions Side-by-side Diff
arch/mips/lemote/lm2e/reset.c
... | ... | @@ -29,16 +29,11 @@ |
29 | 29 | while (1) ; |
30 | 30 | } |
31 | 31 | |
32 | -static void loongson2e_power_off(void) | |
33 | -{ | |
34 | - loongson2e_halt(); | |
35 | -} | |
36 | - | |
37 | 32 | static int __init mips_reboot_setup(void) |
38 | 33 | { |
39 | 34 | _machine_restart = loongson2e_restart; |
40 | 35 | _machine_halt = loongson2e_halt; |
41 | - pm_power_off = loongson2e_power_off; | |
36 | + pm_power_off = loongson2e_halt; | |
42 | 37 | |
43 | 38 | return 0; |
44 | 39 | } |