linux-mips
[Top] [All Lists]

[PATCH v4 04/16] [loongson] pm: Remove redundant source code

To: linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, ralf@linux-mips.org, Jason Wessel <jason.wessel@windriver.com>
Subject: [PATCH v4 04/16] [loongson] pm: Remove redundant source code
From: Wu Zhangjin <wuzhangjin@gmail.com>
Date: Thu, 2 Jul 2009 23:20:56 +0800
Cc: Wu Zhangjin <wuzj@lemote.com>, Yan Hua <yanh@lemote.com>, Philippe Vachon <philippe@cowpig.ca>, Zhang Le <r0bertz@gentoo.org>, Zhang Fuxin <zhangfx@lemote.com>, loongson-dev <loongson-dev@googlegroups.com>, Liu Junliang <liujl@lemote.com>, Erwan Lerale <erwan@thiscow.com>, Arnaud Patard <apatard@mandriva.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=aKm/7IpHnEXDxEKScWwpTKl3q0tjxhNjcE1YZwuHFf4=; b=u5GCzIEboXUnWnnElBEkx98fcN6w+zGrbtLhN94pmPAR4pvtqzkMpQXy7AcCtL2Xjk acKX78ll8bt7YAmldpNQq9X6lmmfy0Rox+1oBnTw8YpADmlVbjbCKkqY0M1AtauVstwf GEcSFakMy9t34iB01jA5IkP3+znRiJ5jnfqsg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=hRGD4ER6s2KtDilNSc+GGC4kotFcCdsF7xFsgitechJ2pgUbK3law+aeq4kO1BlA62 gu6GxB/5b4eN7OXEjRbGtEqndYYGkG0LdOyEUS8E7TWseLv4YiycjRMRrRWj22KZfnf1 3FU+9Fv+I4w/Rre6neSX/tTbkKdEcEIGuzsLE=
In-reply-to: <cover.1246546684.git.wuzhangjin@gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <cover.1246546684.git.wuzhangjin@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
From: Wu Zhangjin <wuzj@lemote.com>

the implmentation of loongson2e_power_off and loongson2e_halt is
almostly the same, just reserve one of them.

Signed-off-by: Wu Zhangjin <wuzj@lemote.com>
---
 arch/mips/lemote/lm2e/reset.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/arch/mips/lemote/lm2e/reset.c b/arch/mips/lemote/lm2e/reset.c
index 099387a..47ff506 100644
--- a/arch/mips/lemote/lm2e/reset.c
+++ b/arch/mips/lemote/lm2e/reset.c
@@ -28,14 +28,9 @@ static void loongson2e_halt(void)
        while (1) ;
 }
 
-static void loongson2e_power_off(void)
-{
-       loongson2e_halt();
-}
-
 void mips_reboot_setup(void)
 {
        _machine_restart = loongson2e_restart;
        _machine_halt = loongson2e_halt;
-       pm_power_off = loongson2e_power_off;
+       pm_power_off = loongson2e_halt;
 }
-- 
1.6.2.1


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