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

From
Greg Kroah-Hartman <gregkh@suse.de>
Date
2011-01-06 22:30:36
Also in
lkml, virtualization, xen-devel
From: Jiri Slaby <redacted>

Use newly added for_each_console for iterating consoles.

Signed-off-by: Jiri Slaby <redacted>
Cc: Jeremy Fitzhardinge <redacted>
Cc: Chris Wright <redacted>
Cc: <redacted>
Cc: <redacted>
Cc: <redacted>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
 drivers/video/xen-fbfront.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
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;
 	}
-- 
1.7.3.2
Thread (1 message) 1 message, 1 author, last reply 2011-01-06
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help