Skip to content

Commit 281e660

Browse files
Jiri Slabygregkh
authored andcommitted
VIDEO: xen-fb, switch to for_each_console
Use newly added for_each_console for iterating consoles. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Cc: Jeremy Fitzhardinge <jeremy@xensource.com> Cc: Chris Wright <chrisw@sous-sol.org> Cc: virtualization@lists.osdl.org Cc: xen-devel@lists.xensource.com Cc: linux-fbdev@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent 3dfbd04 commit 281e660

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/video/xen-fbfront.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ xenfb_make_preferred_console(void)
492492
return;
493493

494494
acquire_console_sem();
495-
for (c = console_drivers; c; c = c->next) {
495+
for_each_console(c) {
496496
if (!strcmp(c->name, "tty") && c->index == 0)
497497
break;
498498
}

0 commit comments

Comments
 (0)