Skip to content

Commit

Permalink
MIPS: PowerTV: simplify prom_init_cmdline() and merge into prom_init()
Browse files Browse the repository at this point in the history
Signed-off-by: Yoichi Yuasa <yuasa@linux-mips.org>
Patchwork: http://patchwork.linux-mips.org/patch/801/
Reviewed-by: David VomLehn <dvomlehn@cisco.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Yoichi Yuasa authored and Ralf Baechle committed Jan 12, 2010
1 parent 0eb99a9 commit 7e326d6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 56 deletions.
2 changes: 1 addition & 1 deletion arch/mips/powertv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
# under Linux.
#

obj-y += cmdline.o init.o memory.o reset.o time.o powertv_setup.o asic/ pci/
obj-y += init.o memory.o reset.o time.o powertv_setup.o asic/ pci/

EXTRA_CFLAGS += -Wall -Werror
47 changes: 0 additions & 47 deletions arch/mips/powertv/cmdline.c

This file was deleted.

15 changes: 9 additions & 6 deletions arch/mips/powertv/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@
#include <asm/mips-boards/generic.h>
#include <asm/mach-powertv/asic.h>

#include "init.h"

int prom_argc;
int *_prom_argv, *_prom_envp;
static int *_prom_envp;
unsigned long _prom_memsize;

/*
Expand Down Expand Up @@ -109,16 +106,22 @@ static void __init mips_ejtag_setup(void)

void __init prom_init(void)
{
int prom_argc;
char *prom_argv;

prom_argc = fw_arg0;
_prom_argv = (int *) fw_arg1;
prom_argv = (char *) fw_arg1;
_prom_envp = (int *) fw_arg2;
_prom_memsize = (unsigned long) fw_arg3;

board_nmi_handler_setup = mips_nmi_setup;
board_ejtag_handler_setup = mips_ejtag_setup;

pr_info("\nLINUX started...\n");
prom_init_cmdline();

if (prom_argc == 1)
strlcat(arcs_cmdline, prom_argv, COMMAND_LINE_SIZE);

configure_platform();
prom_meminit();

Expand Down
2 changes: 0 additions & 2 deletions arch/mips/powertv/init.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,5 @@

#ifndef _POWERTV_INIT_H
#define _POWERTV_INIT_H
extern int prom_argc;
extern int *_prom_argv;
extern unsigned long _prom_memsize;
#endif

0 comments on commit 7e326d6

Please sign in to comment.