提交 e0f5fa99 编写于 作者: B Benjamin Herrenschmidt

powerpc: Check "status" property before adding legacy ISA serial ports

Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
上级 30925748
......@@ -386,9 +386,11 @@ void __init find_legacy_serial_ports(void)
struct device_node *isa = of_get_parent(np);
if (isa && (!strcmp(isa->name, "isa") ||
!strcmp(isa->name, "lpc"))) {
index = add_legacy_isa_port(np, isa);
if (index >= 0 && np == stdout)
legacy_serial_console = index;
if (of_device_is_available(np)) {
index = add_legacy_isa_port(np, isa);
if (index >= 0 && np == stdout)
legacy_serial_console = index;
}
}
of_node_put(isa);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册