mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 11:10:51 +07:00
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>
This commit is contained in:
parent
f6a2740d0c
commit
8f0de87fa9
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user