aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/early_printk.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/kernel/early_printk.c')
-rw-r--r--arch/sh/kernel/early_printk.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/arch/sh/kernel/early_printk.c b/arch/sh/kernel/early_printk.c
index 9048c0326d87..9833493d8867 100644
--- a/arch/sh/kernel/early_printk.c
+++ b/arch/sh/kernel/early_printk.c
@@ -192,20 +192,14 @@ int __init setup_early_printk(char *buf)
192 } 192 }
193#endif 193#endif
194 194
195 if (likely(early_console)) 195 if (likely(early_console)) {
196 if (keep_early)
197 early_console->flags &= ~CON_BOOT;
198 else
199 early_console->flags |= CON_BOOT;
196 register_console(early_console); 200 register_console(early_console);
201 }
197 202
198 return 0; 203 return 0;
199} 204}
200early_param("earlyprintk", setup_early_printk); 205early_param("earlyprintk", setup_early_printk);
201
202void __init disable_early_printk(void)
203{
204 if (!early_console_initialized || !early_console)
205 return;
206 if (!keep_early) {
207 printk("disabling early console\n");
208 unregister_console(early_console);
209 } else
210 printk("keeping early console\n");
211}