mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-03 17:40:04 +00:00
powerpc/zImage: Also check for stdout-path
The /chosen/linux,stdout-path is "deprecated" in favour of /chosen/stdout-path so we should be checking for both. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
505a314fb2
commit
9bbc7e4ce4
1 changed files with 2 additions and 1 deletions
|
@ -93,7 +93,8 @@ static void *serial_get_stdout_devp(void)
|
||||||
if (devp == NULL)
|
if (devp == NULL)
|
||||||
goto err_out;
|
goto err_out;
|
||||||
|
|
||||||
if (getprop(devp, "linux,stdout-path", path, MAX_PATH_LEN) > 0) {
|
if (getprop(devp, "linux,stdout-path", path, MAX_PATH_LEN) > 0 ||
|
||||||
|
getprop(devp, "stdout-path", path, MAX_PATH_LEN) > 0) {
|
||||||
devp = finddevice(path);
|
devp = finddevice(path);
|
||||||
if (devp == NULL)
|
if (devp == NULL)
|
||||||
goto err_out;
|
goto err_out;
|
||||||
|
|
Loading…
Reference in a new issue