Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752337Ab0KDPVX (ORCPT ); Thu, 4 Nov 2010 11:21:23 -0400 Received: from mail.pripojeni.net ([217.66.174.14]:33079 "EHLO smtp.pripojeni.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1752261Ab0KDPVR (ORCPT ); Thu, 4 Nov 2010 11:21:17 -0400 From: Jiri Slaby To: Andrew Morton Cc: werner@suse.de, alan@lxorguk.ukuu.org.uk, gregkh@suse.de, linux-kernel@vger.kernel.org, jirislaby@gmail.com, Jeremy Fitzhardinge , Chris Wright , virtualization@lists.osdl.org, xen-devel@lists.xensource.com, linux-fbdev@vger.kernel.org Subject: [PATCH v2 3/5] VIDEO: xen-fb, switch to for_each_console Date: Thu, 4 Nov 2010 16:20:22 +0100 Message-Id: <1288884024-23873-3-git-send-email-jslaby@suse.cz> X-Mailer: git-send-email 1.7.3.1 In-Reply-To: <1288884024-23873-1-git-send-email-jslaby@suse.cz> References: <1288884024-23873-1-git-send-email-jslaby@suse.cz> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1036 Lines: 34 Use newly added for_each_console for iterating consoles. Signed-off-by: Jiri Slaby Cc: Jeremy Fitzhardinge Cc: Chris Wright Cc: virtualization@lists.osdl.org Cc: xen-devel@lists.xensource.com Cc: linux-fbdev@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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/