Skip to content

Commit

Permalink
VIDEO: xen-fb, switch to for_each_console
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiri Slaby authored and Greg Kroah-Hartman committed Nov 16, 2010
1 parent 3dfbd04 commit 281e660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/xen-fbfront.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 281e660

Please sign in to comment.