diff options
author | Paul Burton <paul.burton@mips.com> | 2016-09-20 00:21:31 +0300 |
---|---|---|
committer | Paul Burton <paul.burton@mips.com> | 2018-06-24 19:27:27 +0300 |
commit | dd129c6374e90e665ec022019bcc2f392f25cf2c (patch) | |
tree | eaffd8834053d0713bcb6bfc44c32d08cf7da7cd /arch/mips/mti-malta/malta-reset.c | |
parent | a07539c00046dfa890e6aac1db4f0de01acb0132 (diff) | |
download | linux-dd129c6374e90e665ec022019bcc2f392f25cf2c.tar.xz |
MIPS: Malta: Use PIIX4 poweroff driver to power down
Remove the platform code used to power down the system, instead relying
upon the new PIIX4 poweroff driver. This reduces the amount of platform
code required for the Malta board in preparation for allowing it to be
part of a more generic kernel.
Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/14282/
Diffstat (limited to 'arch/mips/mti-malta/malta-reset.c')
-rw-r--r-- | arch/mips/mti-malta/malta-reset.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/arch/mips/mti-malta/malta-reset.c b/arch/mips/mti-malta/malta-reset.c deleted file mode 100644 index dd6f62ad4417..000000000000 --- a/arch/mips/mti-malta/malta-reset.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * This file is subject to the terms and conditions of the GNU General Public - * License. See the file "COPYING" in the main directory of this archive - * for more details. - * - * Carsten Langgaard, carstenl@mips.com - * Copyright (C) 1999,2000 MIPS Technologies, Inc. All rights reserved. - */ -#include <linux/io.h> -#include <linux/pm.h> -#include <linux/reboot.h> - -#include <asm/reboot.h> -#include <asm/mach-malta/malta-pm.h> - -static void mips_machine_power_off(void) -{ - mips_pm_suspend(PIIX4_FUNC3IO_PMCNTRL_SUS_TYP_SOFF); - - pr_info("Failed to power down, resetting\n"); - machine_restart(NULL); -} - -static int __init mips_reboot_setup(void) -{ - pm_power_off = mips_machine_power_off; - - return 0; -} -arch_initcall(mips_reboot_setup); |