powerpc: Check "status" property before adding legacy ISA serial ports
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
@@ -386,9 +386,11 @@ void __init find_legacy_serial_ports(void)
|
|||||||
struct device_node *isa = of_get_parent(np);
|
struct device_node *isa = of_get_parent(np);
|
||||||
if (isa && (!strcmp(isa->name, "isa") ||
|
if (isa && (!strcmp(isa->name, "isa") ||
|
||||||
!strcmp(isa->name, "lpc"))) {
|
!strcmp(isa->name, "lpc"))) {
|
||||||
index = add_legacy_isa_port(np, isa);
|
if (of_device_is_available(np)) {
|
||||||
if (index >= 0 && np == stdout)
|
index = add_legacy_isa_port(np, isa);
|
||||||
legacy_serial_console = index;
|
if (index >= 0 && np == stdout)
|
||||||
|
legacy_serial_console = index;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
of_node_put(isa);
|
of_node_put(isa);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user