Merge branch 'stable/bug-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git...
[pandora-kernel.git] / drivers / video / xen-fbfront.c
index 95bbd0a..3e6934d 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;
        }