Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753374AbZGBPVT (ORCPT ); Thu, 2 Jul 2009 11:21:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751157AbZGBPVJ (ORCPT ); Thu, 2 Jul 2009 11:21:09 -0400 Received: from ey-out-1920.google.com ([74.125.78.147]:58300 "EHLO ey-out-1920.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750874AbZGBPVI (ORCPT ); Thu, 2 Jul 2009 11:21:08 -0400 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= From: Wu Zhangjin To: linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, ralf@linux-mips.org, Jason Wessel Cc: Wu Zhangjin , Yan Hua , Philippe Vachon , Zhang Le , Zhang Fuxin , loongson-dev , Liu Junliang , Erwan Lerale , Arnaud Patard Subject: [PATCH v4 04/16] [loongson] pm: Remove redundant source code Date: Thu, 2 Jul 2009 23:20:56 +0800 Message-Id: <93ba7839f73d96de29fa76647ca1fe90012a021c.1246546684.git.wuzhangjin@gmail.com> X-Mailer: git-send-email 1.6.2.1 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1055 Lines: 38 From: Wu Zhangjin the implmentation of loongson2e_power_off and loongson2e_halt is almostly the same, just reserve one of them. Signed-off-by: Wu Zhangjin --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/