linux-mips
[Top] [All Lists]

[PATCH 2/2][MIPS] remove wrppmc_machine_power_off()

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH 2/2][MIPS] remove wrppmc_machine_power_off()
From: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Date: Fri, 11 Jul 2008 22:39:18 +0900
Cc: yoichi_yuasa@tripeaks.co.jp, linux-mips <linux-mips@linux-mips.org>
In-reply-to: <20080711223748.e164b514.yoichi_yuasa@tripeaks.co.jp>
Organization: TriPeaks Corporation
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20080711223748.e164b514.yoichi_yuasa@tripeaks.co.jp>
Sender: linux-mips-bounce@linux-mips.org
Remove wrppmc_machine_power_off().
It can be replace wrppmc_machine_halt().

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

diff -pruN -X /home/yuasa/Memo/dontdiff 
linux-orig/arch/mips/gt64120/wrppmc/reset.c 
linux/arch/mips/gt64120/wrppmc/reset.c
--- linux-orig/arch/mips/gt64120/wrppmc/reset.c 2008-07-08 13:33:35.731399494 
+0900
+++ linux/arch/mips/gt64120/wrppmc/reset.c      2008-07-08 13:33:45.979983528 
+0900
@@ -38,8 +38,3 @@ void wrppmc_machine_halt(void)
                        cpu_wait();
        }
 }
-
-void wrppmc_machine_power_off(void)
-{
-       wrppmc_machine_halt();
-}
diff -pruN -X /home/yuasa/Memo/dontdiff 
linux-orig/arch/mips/gt64120/wrppmc/setup.c 
linux/arch/mips/gt64120/wrppmc/setup.c
--- linux-orig/arch/mips/gt64120/wrppmc/setup.c 2008-07-08 10:12:29.899943226 
+0900
+++ linux/arch/mips/gt64120/wrppmc/setup.c      2008-07-08 13:34:20.305939652 
+0900
@@ -98,11 +98,10 @@ void __init plat_mem_setup(void)
 {
        extern void wrppmc_machine_restart(char *command);
        extern void wrppmc_machine_halt(void);
-       extern void wrppmc_machine_power_off(void);
 
        _machine_restart = wrppmc_machine_restart;
        _machine_halt    = wrppmc_machine_halt;
-       pm_power_off     = wrppmc_machine_power_off;
+       pm_power_off     = wrppmc_machine_halt;
 
        /* This makes the operations of 'in/out[bwl]' to the
         * physical address ( < KSEG0) can work via KSEG1

<Prev in Thread] Current Thread [Next in Thread>