Skip to content

Commit

Permalink
MIPS: Loongson: pm: Remove redundant source code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wu Zhangjin authored and Ralf Baechle committed Sep 17, 2009
1 parent f6a2740 commit 8f0de87
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions arch/mips/lemote/lm2e/reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8f0de87

Please sign in to comment.