Return-Path: Received: from mail-by2nam01on0120.outbound.protection.outlook.com ([104.47.34.120]:44880 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932394AbeARU7q (ORCPT ); Thu, 18 Jan 2018 15:59:46 -0500 From: Sasha Levin To: "stable@vger.kernel.org" , "stable-commits@vger.kernel.org" CC: John Crispin , Ralf Baechle , "Sasha Levin" Subject: [added to the 4.1 stable tree] MIPS: ralink: Cosmetic change to prom_init(). Date: Thu, 18 Jan 2018 20:59:37 +0000 Message-ID: <20180118205908.3220-27-alexander.levin@microsoft.com> References: <20180118205908.3220-1-alexander.levin@microsoft.com> In-Reply-To: <20180118205908.3220-1-alexander.levin@microsoft.com> Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org List-ID: From: John Crispin This patch has been added to the stable tree. If you have any objections, please let us know. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D [ Upstream commit 9c48568b3692f1a56cbf1935e4eea835e6b185b1 ] Over the years the code has been changed various times leading to argc/argv being defined in a different function to where we actually use the variables. Clean this up by moving them to prom_init_cmdline(). Signed-off-by: John Crispin Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/14902/ Signed-off-by: Ralf Baechle Signed-off-by: Sasha Levin --- arch/mips/ralink/prom.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/arch/mips/ralink/prom.c b/arch/mips/ralink/prom.c index 09419f67da39..bdfc253958f4 100644 --- a/arch/mips/ralink/prom.c +++ b/arch/mips/ralink/prom.c @@ -25,8 +25,10 @@ const char *get_system_type(void) return soc_info.sys_type; } =20 -static __init void prom_init_cmdline(int argc, char **argv) +static __init void prom_init_cmdline(void) { + int argc; + char **argv; int i; =20 pr_debug("prom: fw_arg0=3D%08x fw_arg1=3D%08x fw_arg2=3D%08x fw_arg3=3D%0= 8x\n", @@ -55,14 +57,11 @@ static __init void prom_init_cmdline(int argc, char **a= rgv) =20 void __init prom_init(void) { - int argc; - char **argv; - prom_soc_init(&soc_info); =20 pr_info("SoC Type: %s\n", get_system_type()); =20 - prom_init_cmdline(argc, argv); + prom_init_cmdline(); } =20 void __init prom_free_prom_memory(void) --=20 2.11.0