Skip to content

Commit

Permalink
powerpc/udbg: Register udbg console generically
Browse files Browse the repository at this point in the history
When CONFIG_PPC_EARLY_DEBUG is set, call register_early_udbg_console()
early from generic code.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Benjamin Herrenschmidt committed Jun 29, 2011
1 parent 048bee7 commit dd2e356
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions arch/powerpc/kernel/udbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ void __init udbg_early_init(void)

#ifdef CONFIG_PPC_EARLY_DEBUG
console_loglevel = 10;

register_early_udbg_console();
#endif
}

Expand Down
2 changes: 0 additions & 2 deletions arch/powerpc/platforms/pseries/lpar.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,6 @@ void __init udbg_init_debug_lpar(void)
udbg_putc = udbg_putcLP;
udbg_getc = udbg_getcLP;
udbg_getc_poll = udbg_getc_pollLP;

register_early_udbg_console();
}

/* returns 0 if couldn't find or use /chosen/stdout as console */
Expand Down

0 comments on commit dd2e356

Please sign in to comment.