linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix mpc52xx_uart_of_assign to use correct index
@ 2007-05-23 17:30 John Rigby
  2007-05-23 18:41 ` Grant Likely
  0 siblings, 1 reply; 2+ messages in thread
From: John Rigby @ 2007-05-23 17:30 UTC (permalink / raw)
  To: linuxppc-embedded; +Cc: Sylvain Munaut, John Rigby

Use idx as index into mpc52xx_uart_nodes instead of i

Signed-off-by: John Rigby <jrigby@freescale.com>
---
 drivers/serial/mpc52xx_uart.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/serial/mpc52xx_uart.c b/drivers/serial/mpc52xx_uart.c
index 3cc2fb9..0648017 100644
--- a/drivers/serial/mpc52xx_uart.c
+++ b/drivers/serial/mpc52xx_uart.c
@@ -1114,7 +1114,7 @@ mpc52xx_uart_of_assign(struct device_node *np, int idx)
 	/* If the slot is already occupied, then swap slots */
 	if (mpc52xx_uart_nodes[idx] && (free_idx != -1))
 		mpc52xx_uart_nodes[free_idx] = mpc52xx_uart_nodes[idx];
-	mpc52xx_uart_nodes[i] = np;
+	mpc52xx_uart_nodes[idx] = np;
 }
 
 static void
-- 
1.5.1.1.174.gabbf5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix mpc52xx_uart_of_assign to use correct index
  2007-05-23 17:30 [PATCH] Fix mpc52xx_uart_of_assign to use correct index John Rigby
@ 2007-05-23 18:41 ` Grant Likely
  0 siblings, 0 replies; 2+ messages in thread
From: Grant Likely @ 2007-05-23 18:41 UTC (permalink / raw)
  To: John Rigby; +Cc: linuxppc-embedded

On 5/23/07, John Rigby <jrigby@freescale.com> wrote:
> Use idx as index into mpc52xx_uart_nodes instead of i
>
> Signed-off-by: John Rigby <jrigby@freescale.com>

Good catch

Acked-by: Grant Likely <grant.likely@secretlab.ca>

g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-05-23 18:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-23 17:30 [PATCH] Fix mpc52xx_uart_of_assign to use correct index John Rigby
2007-05-23 18:41 ` Grant Likely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).