Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67253
b: refs/heads/master
c: dc4f397
h: refs/heads/master
i:
  67251: 80c4a9e
v: v3
  • Loading branch information
Scott Wood authored and Paul Mackerras committed Aug 22, 2007
1 parent b231c36 commit 0e325c4
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 61d3b949b70802c4f32d540b11a93128c31c67ea
refs/heads/master: dc4f397d6e385c4ea0fe9732df911a86f1a78c9a
12 changes: 5 additions & 7 deletions trunk/arch/powerpc/boot/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,29 +114,27 @@ int serial_console_init(void)
{
void *devp;
int rc = -1;
char compat[MAX_PROP_LEN];

devp = serial_get_stdout_devp();
if (devp == NULL)
goto err_out;

if (getprop(devp, "compatible", compat, sizeof(compat)) < 0)
goto err_out;

if (!strcmp(compat, "ns16550"))
if (dt_is_compatible(devp, "ns16550"))
rc = ns16550_console_init(devp, &serial_cd);
else if (!strcmp(compat, "marvell,mpsc"))
else if (dt_is_compatible(devp, "marvell,mpsc"))
rc = mpsc_console_init(devp, &serial_cd);

/* Add other serial console driver calls here */

if (!rc) {
console_ops.open = serial_open;
console_ops.write = serial_write;
console_ops.edit_cmdline = serial_edit_cmdline;
console_ops.close = serial_close;
console_ops.data = &serial_cd;

if (serial_cd.getc)
console_ops.edit_cmdline = serial_edit_cmdline;

return 0;
}
err_out:
Expand Down

0 comments on commit 0e325c4

Please sign in to comment.