diff mbox

[10/36] VIDEO: xen-fb, switch to for_each_console

Message ID 1294352605-31906-10-git-send-email-gregkh@suse.de (mailing list archive)
State Not Applicable
Headers show

Commit Message

Greg Kroah-Hartman Jan. 6, 2011, 10:22 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/video/xen-fbfront.c b/drivers/video/xen-fbfront.c
index 428d273..4abb0b9 100644
--- a/drivers/video/xen-fbfront.c
+++ b/drivers/video/xen-fbfront.c
@@ -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;
 	}