[PATCH RFC] Fix bug if earlyprintk is called twice

2013-04-18 Thread Gregory CLEMENT
Hello, If on the kernel command line the parameter "earlyprintk" is written twice, then setup_early_printk is called twice. This can happen for example with the option CONFIG_ARM_ATAG_DTB_COMPAT_CMDLINE_EXTEND is selected, and the "earlyprintk" is passed from the ATAG_CMDLINE and from the dtb.

[PATCH RFC] Fix bug if earlyprintk is called twice

2013-04-18 Thread Gregory CLEMENT
Hello, If on the kernel command line the parameter earlyprintk is written twice, then setup_early_printk is called twice. This can happen for example with the option CONFIG_ARM_ATAG_DTB_COMPAT_CMDLINE_EXTEND is selected, and the earlyprintk is passed from the ATAG_CMDLINE and from the dtb. This