All of lore.kernel.org
 help / color / mirror / Atom feed
From: n.voss@weinmann.de (Nikolaus Voss)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] atmel_serial: fix atmel_default_console_device
Date: Mon, 8 Aug 2011 15:10:01 +0000 (UTC)	[thread overview]
Message-ID: <loom.20110808T170457-559@post.gmane.org> (raw)
In-Reply-To: 1308666679-12111-1-git-send-email-plagnioj@jcrosoft.com

reflect new static uart platform ids introduced by patch
http://article.gmane.org/gmane.linux.kernel/1126105

Signed-off-by: Nikolaus Voss <n.voss@weinmannn.de>
 
---
 drivers/tty/serial/atmel_serial.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/tty/serial/atmel_serial.c \
	b/drivers/tty/serial/atmel_serial.c
index af9b781..29c7857 100644
--- a/drivers/tty/serial/atmel_serial.c
+++ b/drivers/tty/serial/atmel_serial.c
@@ -1609,9 +1609,10 @@ static struct console atmel_console = {
 static int __init atmel_console_init(void)
 {
 	if (atmel_default_console_device) {
-		add_preferred_console(ATMEL_DEVICENAME,
-				      atmel_default_console_device->id, NULL);
-		atmel_init_port(&atmel_ports[atmel_default_console_device->id],
+		struct atmel_uart_data *pdata =
+			atmel_default_console_device->dev.platform_data;
+		add_preferred_console(ATMEL_DEVICENAME, pdata->num, NULL);
+		atmel_init_port(&atmel_ports[pdata->num],
 				atmel_default_console_device);
 		register_console(&atmel_console);
 	}
-- 
1.7.4.1

  reply	other threads:[~2011-08-08 15:10 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-13 19:47 [PATCH] atmel_serial: keep the platform_device unchanged Jean-Christophe PLAGNIOL-VILLARD
2011-04-13 19:47 ` Jean-Christophe PLAGNIOL-VILLARD
2011-04-13 21:58 ` Alan Cox
2011-04-13 21:58   ` Alan Cox
2011-04-15 19:02   ` Jean-Christophe PLAGNIOL-VILLARD
2011-04-15 19:02     ` Jean-Christophe PLAGNIOL-VILLARD
2011-06-08  8:45 ` Hans-Christian Egtvedt
2011-06-08  8:45   ` Hans-Christian Egtvedt
2011-06-08 13:47   ` Jean-Christophe PLAGNIOL-VILLARD
2011-06-08 13:47     ` Jean-Christophe PLAGNIOL-VILLARD
2011-06-08 13:47     ` Jean-Christophe PLAGNIOL-VILLARD
2011-06-08 14:02     ` Hans-Christian Egtvedt
2011-06-08 14:02       ` Hans-Christian Egtvedt
2011-06-17  3:06       ` Jean-Christophe PLAGNIOL-VILLARD
2011-06-17  3:06         ` Jean-Christophe PLAGNIOL-VILLARD
2011-06-17  3:06         ` Jean-Christophe PLAGNIOL-VILLARD
2011-06-21 14:28       ` Jean-Christophe PLAGNIOL-VILLARD
2011-06-21 14:28         ` Jean-Christophe PLAGNIOL-VILLARD
2011-06-21 14:28         ` Jean-Christophe PLAGNIOL-VILLARD
2011-06-21 14:31       ` [PATCH] atmel_serial: fix internal port num Jean-Christophe PLAGNIOL-VILLARD
2011-06-21 14:31         ` Jean-Christophe PLAGNIOL-VILLARD
2011-08-08 15:10         ` Nikolaus Voss [this message]
2011-08-09 11:41           ` [PATCH] atmel_serial: fix atmel_default_console_device Sergei Shtylyov
2011-08-09 14:16             ` Voss, Nikolaus
2011-08-09 14:16               ` Voss, Nikolaus
2011-08-09 14:17             ` Voss, Nikolaus
2011-08-10 11:13               ` Sergei Shtylyov
2011-08-10 12:02                 ` [PATCH v2] " Voss, Nikolaus
2011-08-10 12:02                   ` Voss, Nikolaus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20110808T170457-559@post.gmane.org \
    --to=n.voss@weinmann.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.