linux-mips
[Top] [All Lists]

[PATCH][3/9][MIPS] remove cobalt_machine_power_off

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH][3/9][MIPS] remove cobalt_machine_power_off
From: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Date: Fri, 14 Sep 2007 17:14:30 +0900
Cc: yoichi_yuasa@tripeaks.co.jp, linux-mips <linux-mips@linux-mips.org>
In-reply-to: <20070914164228.333da5d9.yoichi_yuasa@tripeaks.co.jp>
Organization: TriPeaks Corporation
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20070914164228.333da5d9.yoichi_yuasa@tripeaks.co.jp>
Sender: linux-mips-bounce@linux-mips.org
Remove cobalt_machine_power_off().
It is same as cobalt_machine_halt().

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>

diff -pruN -X mips/Documentation/dontdiff mips-orig/arch/mips/cobalt/reset.c 
mips/arch/mips/cobalt/reset.c
--- mips-orig/arch/mips/cobalt/reset.c  2007-09-14 16:07:34.574419250 +0900
+++ mips/arch/mips/cobalt/reset.c       2007-09-14 16:07:40.882813500 +0900
@@ -27,12 +27,3 @@ void cobalt_machine_restart(char *comman
        /* we should never get here */
        cobalt_machine_halt();
 }
-
-/*
- * This triggers the luser mode device driver for the power switch ;-)
- */
-void cobalt_machine_power_off(void)
-{
-       printk("You can switch the machine off now.\n");
-       cobalt_machine_halt();
-}
diff -pruN -X mips/Documentation/dontdiff mips-orig/arch/mips/cobalt/setup.c 
mips/arch/mips/cobalt/setup.c
--- mips-orig/arch/mips/cobalt/setup.c  2007-09-14 15:36:16.516916250 +0900
+++ mips/arch/mips/cobalt/setup.c       2007-09-14 16:07:40.982819750 +0900
@@ -24,7 +24,6 @@
 
 extern void cobalt_machine_restart(char *command);
 extern void cobalt_machine_halt(void);
-extern void cobalt_machine_power_off(void);
 
 const char *get_system_type(void)
 {
@@ -90,7 +89,7 @@ void __init plat_mem_setup(void)
 
        _machine_restart = cobalt_machine_restart;
        _machine_halt = cobalt_machine_halt;
-       pm_power_off = cobalt_machine_power_off;
+       pm_power_off = cobalt_machine_halt;
 
        set_io_port_base(CKSEG1ADDR(GT_DEF_PCI0_IO_BASE));
 

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH][3/9][MIPS] remove cobalt_machine_power_off, Yoichi Yuasa <=