summaryrefslogtreecommitdiffstats
path: root/arch/mips/mti-sead3/sead3-reset.c
diff options
context:
space:
mode:
authorPaul Burton <paul.burton@imgtec.com>2016-08-26 16:17:43 +0200
committerRalf Baechle <ralf@linux-mips.org>2016-10-05 01:31:20 +0200
commit70bfdcec9ad9bcd3217f85fd422012777d86e168 (patch)
tree0d8fbff624e889d13491b32d60b2af228d1e4206 /arch/mips/mti-sead3/sead3-reset.c
parentMIPS: SEAD3: Use register-bit-led driver via DT for LEDs (diff)
downloadlinux-70bfdcec9ad9bcd3217f85fd422012777d86e168.tar.xz
linux-70bfdcec9ad9bcd3217f85fd422012777d86e168.zip
MIPS: SEAD3: Reset via generic syscon-reboot driver & DT
Remove the SEAD3 implementation of _machine_restart & instead make use of the generic syscon-reboot driver probed via device tree. Signed-off-by: Paul Burton <paul.burton@imgtec.com> Cc: Rob Herring <robh+dt@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: linux-mips@linux-mips.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/14056/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to '')
-rw-r--r--arch/mips/mti-sead3/sead3-reset.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/mips/mti-sead3/sead3-reset.c b/arch/mips/mti-sead3/sead3-reset.c
index e6fb24414a70..8f548f02eb49 100644
--- a/arch/mips/mti-sead3/sead3-reset.c
+++ b/arch/mips/mti-sead3/sead3-reset.c
@@ -13,14 +13,6 @@
#define SOFTRES_REG 0x1f000050
#define GORESET 0x4d
-static void mips_machine_restart(char *command)
-{
- unsigned int __iomem *softres_reg =
- ioremap(SOFTRES_REG, sizeof(unsigned int));
-
- __raw_writel(GORESET, softres_reg);
-}
-
static void mips_machine_halt(void)
{
unsigned int __iomem *softres_reg =
@@ -31,7 +23,6 @@ static void mips_machine_halt(void)
static int __init mips_reboot_setup(void)
{
- _machine_restart = mips_machine_restart;
_machine_halt = mips_machine_halt;
pm_power_off = mips_machine_halt;