summaryrefslogtreecommitdiffstats
path: root/arch/ppc/mach-mpc85xx/fdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ppc/mach-mpc85xx/fdt.c')
-rw-r--r--arch/ppc/mach-mpc85xx/fdt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/ppc/mach-mpc85xx/fdt.c b/arch/ppc/mach-mpc85xx/fdt.c
index 4feae441e6..65de6f1104 100644
--- a/arch/ppc/mach-mpc85xx/fdt.c
+++ b/arch/ppc/mach-mpc85xx/fdt.c
@@ -70,9 +70,7 @@ static int fdt_stdout_setup(struct device_node *blob)
goto error;
}
- for_each_console(cdev)
- if ((cdev->f_active & (CONSOLE_STDIN | CONSOLE_STDOUT)))
- break;
+ cdev = console_get_first_active();
if (cdev)
sprintf(sername, "serial%d", cdev->dev->id);
else