mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
VIDEO: xen-fb, switch to for_each_console
Use newly added for_each_console for iterating consoles. Signed-off-by: Jiri Slaby <[email protected]> Cc: Jeremy Fitzhardinge <[email protected]> Cc: Chris Wright <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
3dfbd044d0
commit
281e660577
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user