Use newly added for_each_console for iterating consoles. Signed-off-by: Jiri Slaby <jslaby at suse.cz> Cc: Jeremy Fitzhardinge <jeremy at xensource.com> Cc: Chris Wright <chrisw at sous-sol.org> Cc: virtualization at lists.osdl.org Cc: xen-devel at lists.xensource.com Cc: linux-fbdev at vger.kernel.org --- 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.1
Jeremy Fitzhardinge
2010-Nov-04 15:20 UTC
[PATCH 3/3] VIDEO: xen-fb, switch to for_each_console
On 11/03/2010 11:28 AM, Jiri Slaby wrote:> Use newly added for_each_console for iterating consoles. > > Signed-off-by: Jiri Slaby <jslaby at suse.cz> > Cc: Jeremy Fitzhardinge <jeremy at xensource.com>Sure, if that's what all the kids are doing these days. Acked-by: Jeremy Fitzhardinge <jeremy.fitzhardinge at citrix.com> J> Cc: Chris Wright <chrisw at sous-sol.org> > Cc: virtualization at lists.osdl.org > Cc: xen-devel at lists.xensource.com > Cc: linux-fbdev at vger.kernel.org > --- > 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; > }
Seemingly Similar Threads
- [PATCH 3/3] VIDEO: xen-fb, switch to for_each_console
- [PATCH 3/3] VIDEO: xen-fb, switch to for_each_console
- [PATCH] xen: Enable Xen console by default in domU
- [PATCH] xen: Enable Xen console by default in domU
- [PATCH] xen: Enable Xen console by default in domU