Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 26 Jun 2012 06:52:38 +0200 (CEST) Received: from home.bethel-hill.org ([63.228.164.32]:55002 "EHLO home.bethel-hill.org" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S1903767Ab2FZEuT (ORCPT ); Tue, 26 Jun 2012 06:50:19 +0200 Received: by home.bethel-hill.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1SjNbZ-0002zj-Jn; Mon, 25 Jun 2012 23:42:21 -0500 From: "Steven J. Hill" To: linux-mips@linux-mips.org Cc: "Steven J. Hill" , ralf@linux-mips.org Subject: [PATCH 32/33] MIPS: vr41xx: Cleanup firmware support for vr41xx platforms. Date: Mon, 25 Jun 2012 23:41:47 -0500 Message-Id: <1340685708-14408-33-git-send-email-sjhill@mips.com> X-Mailer: git-send-email 1.7.10.3 In-Reply-To: <1340685708-14408-1-git-send-email-sjhill@mips.com> References: <1340685708-14408-1-git-send-email-sjhill@mips.com> X-archive-position: 33825 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: sjhill@mips.com Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips Return-Path: From: "Steven J. Hill" Signed-off-by: Steven J. Hill --- arch/mips/vr41xx/common/init.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/arch/mips/vr41xx/common/init.c b/arch/mips/vr41xx/common/init.c index 2391632..a4c1f02 100644 --- a/arch/mips/vr41xx/common/init.c +++ b/arch/mips/vr41xx/common/init.c @@ -19,11 +19,9 @@ */ #include #include -#include -#include -#include #include +#include #include #include @@ -59,17 +57,7 @@ void __init plat_mem_setup(void) void __init prom_init(void) { - int argc, i; - char **argv; - - argc = fw_arg0; - argv = (char **)fw_arg1; - - for (i = 1; i < argc; i++) { - strlcat(arcs_cmdline, argv[i], COMMAND_LINE_SIZE); - if (i < (argc - 1)) - strlcat(arcs_cmdline, " ", COMMAND_LINE_SIZE); - } + fw_init_cmdline(); } void __init prom_free_prom_memory(void) -- 1.7.10.3