VIDEO: xen-fb, switch to for_each_console
authorJiri Slaby <jslaby@suse.cz>
Thu, 4 Nov 2010 15:20:22 +0000 (16:20 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Nov 2010 20:50:17 +0000 (12:50 -0800)
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>
drivers/video/xen-fbfront.c

index 428d273be72799e1ae6e90409584efced58dc871..4abb0b9ed653620e4d7f17c6b94749e0ca8c8593 100644 (file)
@@ -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;
        }