aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/mti-malta/malta-reset.c
diff options
context:
space:
mode:
authorPaul Burton <paul.burton@mips.com>2016-09-19 22:21:31 +0100
committerPaul Burton <paul.burton@mips.com>2018-06-24 09:27:27 -0700
commitdd129c6374e90e665ec022019bcc2f392f25cf2c (patch)
treeeaffd8834053d0713bcb6bfc44c32d08cf7da7cd /arch/mips/mti-malta/malta-reset.c
parentMIPS: Malta: Cleanup DMA coherence #ifdefs (diff)
downloadlinux-dev-dd129c6374e90e665ec022019bcc2f392f25cf2c.tar.xz
linux-dev-dd129c6374e90e665ec022019bcc2f392f25cf2c.zip
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.c30
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);