diff --git a/drivers/video/xen-fbfront.c b/drivers/video/xen-fbfront.c index 428d273be72799e1ae6e90409584efced58dc871..4abb0b9ed653620e4d7f17c6b94749e0ca8c8593 100644 --- a/drivers/video/xen-fbfront.c +++ b/drivers/video/xen-fbfront.c @@ -492,7 +492,7 @@ xenfb_make_preferred_console(void) return; acquire_console_sem(); - for (c = console_drivers; c; c = c->next) { + for_each_console(c) { if (!strcmp(c->name, "tty") && c->index == 0) break; }