Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91567
b: refs/heads/master
c: 5faae2e
h: refs/heads/master
i:
  91565: 961a1fc
  91563: 062b2bd
  91559: d919d1e
  91551: 20bc48b
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Apr 17, 2008
1 parent 562cb79 commit 72fabd0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 21cf91338fabe649ae3744429e13b61da2a17a6a
refs/heads/master: 5faae2e5d1f53df9dce482032c8486bc3a1feffc
9 changes: 2 additions & 7 deletions trunk/arch/powerpc/platforms/pseries/lpar.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ void __init find_udbg_vterm(void)
struct device_node *stdout_node;
const u32 *termno;
const char *name;
int add_console;

/* find the boot console from /chosen/stdout */
if (!of_chosen)
Expand All @@ -220,8 +219,6 @@ void __init find_udbg_vterm(void)
printk(KERN_WARNING "stdout node missing 'name' property!\n");
goto out;
}
/* The user has requested a console so this is already set up. */
add_console = !strstr(cmd_line, "console=");

/* Check if it's a virtual terminal */
if (strncmp(name, "vty", 3) != 0)
Expand All @@ -235,15 +232,13 @@ void __init find_udbg_vterm(void)
udbg_putc = udbg_putcLP;
udbg_getc = udbg_getcLP;
udbg_getc_poll = udbg_getc_pollLP;
if (add_console)
add_preferred_console("hvc", termno[0] & 0xff, NULL);
add_preferred_console("hvc", termno[0] & 0xff, NULL);
} else if (of_device_is_compatible(stdout_node, "hvterm-protocol")) {
vtermno = termno[0];
udbg_putc = udbg_hvsi_putc;
udbg_getc = udbg_hvsi_getc;
udbg_getc_poll = udbg_hvsi_getc_poll;
if (add_console)
add_preferred_console("hvsi", termno[0] & 0xff, NULL);
add_preferred_console("hvsi", termno[0] & 0xff, NULL);
}
out:
of_node_put(stdout_node);
Expand Down

0 comments on commit 72fabd0

Please sign in to comment.