projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
TTY: pmac_zilog, check existence of ports in pmz_console_init()
[cascardo/linux.git]
/
drivers
/
tty
/
serial
/
pmac_zilog.c
diff --git
a/drivers/tty/serial/pmac_zilog.c
b/drivers/tty/serial/pmac_zilog.c
index
481b781
..
e9d420f
100644
(file)
--- a/
drivers/tty/serial/pmac_zilog.c
+++ b/
drivers/tty/serial/pmac_zilog.c
@@
-2052,6
+2052,9
@@
static int __init pmz_console_init(void)
/* Probe ports */
pmz_probe();
+ if (pmz_ports_count == 0)
+ return -ENODEV;
+
/* TODO: Autoprobe console based on OF */
/* pmz_console.index = i; */
register_console(&pmz_console);