diff options
author | Jiri Slaby <jslaby@suse.cz> | 2010-11-04 11:20:22 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-16 15:50:17 -0500 |
commit | 281e66057757ddf32ffe679a08f9634fa9f70a7a (patch) | |
tree | 4822cc0b187487d143fc9dfaf1c7c6c2695c9935 /drivers/video | |
parent | 3dfbd044d0d99cad2fe50e4f6c79845703fa0558 (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/xen-fbfront.c b/drivers/video/xen-fbfront.c index 428d273be727..4abb0b9ed653 100644 --- a/drivers/video/xen-fbfront.c +++ b/drivers/video/xen-fbfront.c | |||
@@ -492,7 +492,7 @@ xenfb_make_preferred_console(void) | |||
492 | return; | 492 | return; |
493 | 493 | ||
494 | acquire_console_sem(); | 494 | acquire_console_sem(); |
495 | for (c = console_drivers; c; c = c->next) { | 495 | for_each_console(c) { |
496 | if (!strcmp(c->name, "tty") && c->index == 0) | 496 | if (!strcmp(c->name, "tty") && c->index == 0) |
497 | break; | 497 | break; |
498 | } | 498 | } |