]> www.infradead.org Git - users/hch/misc.git/commit
MIPS: ingenic: Use common cmdline handling code
authorPaul Burton <paul.burton@mips.com>
Tue, 16 Jan 2018 15:47:58 +0000 (16:47 +0100)
committerJames Hogan <jhogan@kernel.org>
Thu, 18 Jan 2018 22:07:09 +0000 (22:07 +0000)
commite08a48d9250184d8ce6dc6c728b2ca68d7f40f35
treeaebc3eb948ebb84245dc070ebe3857a4975b4900
parent8ce355cf2e38afdb364d03d12b23d9cf44c3b7f1
MIPS: ingenic: Use common cmdline handling code

jz4740_init_cmdline appends all arguments from argv (in fw_arg1) to
arcs_cmdline, up to argc (in fw_arg0). The common code in
fw_init_cmdline will do the exact same thing when run on a system where
fw_arg0 isn't a pointer to kseg0 (it'll also set _fw_envp but we don't
use it). Remove the custom implementation & use the generic code.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Reviewed-by: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Reviewed-by: James Hogan <jhogan@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Maarten ter Huurne <maarten@treewalker.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/18484/
Signed-off-by: James Hogan <jhogan@kernel.org>
arch/mips/jz4740/prom.c