diff mbox

=?utf-8?b?YXRtZWxfc2VyaWFsOg==?= fix =?utf-8?b?YXRtZWxfZGVmYXVsdF9jb25zb2xlX2RldmljZQ==?=

Message ID loom.20110808T170457-559@post.gmane.org (mailing list archive)
State New, archived
Headers show

Commit Message

Voss, Nikolaus Aug. 8, 2011, 3:10 p.m. UTC
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(-)

Comments

Sergei Shtylyov Aug. 9, 2011, 11:41 a.m. UTC | #1
Hello.

On 08-08-2011 19:10, Nikolaus Voss wrote:

> 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;

    Would be good to have empty line after the declaration...

> +		add_preferred_console(ATMEL_DEVICENAME, pdata->num, NULL);
> +		atmel_init_port(&atmel_ports[pdata->num],
>   				atmel_default_console_device);
>   		register_console(&atmel_console);
>   	}

WBR, Sergei
Voss, Nikolaus Aug. 9, 2011, 2:17 p.m. UTC | #2
Thanks, patch resent.

Niko

> -----Original Message-----
> From: Sergei Shtylyov [mailto:sshtylyov@mvista.com]
> Sent: Tuesday, August 09, 2011 1:42 PM
> To: Voss, Nikolaus
> Cc: linux-arm-kernel@lists.infradead.org
> Subject: Re: [PATCH] atmel_serial: fix atmel_default_console_device
> 
> Hello.
> 
> On 08-08-2011 19:10, Nikolaus Voss wrote:
> 
> > 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;
> 
>     Would be good to have empty line after the declaration...
> 
> > +		add_preferred_console(ATMEL_DEVICENAME, pdata->num, NULL);
> > +		atmel_init_port(&atmel_ports[pdata->num],
> >   				atmel_default_console_device);
> >   		register_console(&atmel_console);
> >   	}
> 
> WBR, Sergei
Sergei Shtylyov Aug. 10, 2011, 11:13 a.m. UTC | #3
Hello.

On 09-08-2011 18:17, Voss, Nikolaus wrote:

> Thanks, patch resent.

    You then should have marked the new version in the subject (like "[PATCH 
v2]"), and described the changes from the previous version under the --- tear 
line...

> Niko

WBR, Sergei
diff mbox

Patch

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);
 	}