summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2010-11-04 16:20:22 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2010-11-16 12:50:17 -0800
commit281e66057757ddf32ffe679a08f9634fa9f70a7a (patch)
tree4822cc0b187487d143fc9dfaf1c7c6c2695c9935 /drivers/video
parent3dfbd044d0d99cad2fe50e4f6c79845703fa0558 (diff)
downloadop-kernel-dev-281e66057757ddf32ffe679a08f9634fa9f70a7a.zip
op-kernel-dev-281e66057757ddf32ffe679a08f9634fa9f70a7a.tar.gz
VIDEO: xen-fb, switch to for_each_console
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>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/xen-fbfront.c2
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;
}
OpenPOWER on IntegriCloud