powerpc: Check device status before adding serial device
serial port nodes with the property status="disabled" are not usable and so avoid adding "disabled" port with the system. Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
committed by
Kumar Gala
parent
ef1fd2df85
commit
07d9fce24d
@@ -330,9 +330,11 @@ void __init find_legacy_serial_ports(void)
|
|||||||
if (!parent)
|
if (!parent)
|
||||||
continue;
|
continue;
|
||||||
if (of_match_node(legacy_serial_parents, parent) != NULL) {
|
if (of_match_node(legacy_serial_parents, parent) != NULL) {
|
||||||
index = add_legacy_soc_port(np, np);
|
if (of_device_is_available(np)) {
|
||||||
if (index >= 0 && np == stdout)
|
index = add_legacy_soc_port(np, np);
|
||||||
legacy_serial_console = index;
|
if (index >= 0 && np == stdout)
|
||||||
|
legacy_serial_console = index;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
of_node_put(parent);
|
of_node_put(parent);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user