Skip to content

Commit

Permalink
MIPS: MIPSsim: Remove unused code
Browse files Browse the repository at this point in the history
The function prom_init_cmdline() doesn't do anything, and nobody calls the
prom_getcmdline() function. Since these two are the only functions in the
file arch/mips/mipssim/sim_cmdline.c, the whole file can be removed now
along with the call to the no-op prom_init_cmdline() routine.

Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.com>
Patchwork: http://patchwork.linux-mips.org/patch/465/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Dmitri Vorobiev authored and Ralf Baechle committed Dec 17, 2009
1 parent 8262228 commit c1b14a7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 35 deletions.
3 changes: 1 addition & 2 deletions arch/mips/mipssim/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
#

obj-y := sim_platform.o sim_setup.o sim_mem.o sim_time.o sim_int.o \
sim_cmdline.o
obj-y := sim_platform.o sim_setup.o sim_mem.o sim_time.o sim_int.o

obj-$(CONFIG_EARLY_PRINTK) += sim_console.o
obj-$(CONFIG_MIPS_MT_SMTC) += sim_smtc.o
Expand Down
32 changes: 0 additions & 32 deletions arch/mips/mipssim/sim_cmdline.c

This file was deleted.

1 change: 0 additions & 1 deletion arch/mips/mipssim/sim_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ void __init prom_init(void)
set_io_port_base(0xbfd00000);

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

#ifdef CONFIG_MIPS_MT_SMP
Expand Down

0 comments on commit c1b14a7

Please sign in to comment.