From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id B20A9DE070 for ; Fri, 14 Sep 2007 07:08:47 +1000 (EST) From: Kumar Gala To: linuxppc-dev@ozlabs.org Subject: [PATCH 20/22] [POWERPC] 52xx: Fix mpc52xx_uart_of_assign to use correct index Date: Thu, 13 Sep 2007 16:07:58 -0500 Message-Id: <1189717711656-git-send-email-galak@kernel.crashing.org> In-Reply-To: <11897177102281-git-send-email-galak@kernel.crashing.org> References: <11897176803590-git-send-email-galak@kernel.crashing.org> <1189717681533-git-send-email-galak@kernel.crashing.org> <1189717683471-git-send-email-galak@kernel.crashing.org> <11897176841013-git-send-email-galak@kernel.crashing.org> <11897176851400-git-send-email-galak@kernel.crashing.org> <1189717687832-git-send-email-galak@kernel.crashing.org> <11897176884163-git-send-email-galak@kernel.crashing.org> <1189717690413-git-send-email-galak@kernel.crashing.org> <1189717691261-git-send-email-galak@kernel.crashing.org> <11897176931664-git-send-email-galak@kernel.crashing.org> <118971769498-git-send-email-galak@kernel.crashing.org> <11897176964013-git-send-email-galak@kernel.crashing.org> <11897176992010-git-send-email-galak@kernel.crashing.org> <11897177013875-git-send-email-galak@kernel.crashing.org> <11897177032288-git-send-email-galak@kernel.crashing.org> <11897177042582-git-send-email-galak@kernel.crashing.org> <11897177052448-git-send-email-galak@kernel.crashing.org> <11897177071168-git-send-email-galak@kernel.crashing.org> <11897177091972-git-send-email-galak@kernel.crashing.org> <11897177102281-git-send-email-galak@kernel.crashing.org> Cc: John Rigby List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: John Rigby Use idx as index into mpc52xx_uart_nodes instead of i Signed-off-by: John Rigby Signed-off-by: Kumar Gala --- 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 35f8b86..035cca0 100644 --- a/drivers/serial/mpc52xx_uart.c +++ b/drivers/serial/mpc52xx_uart.c @@ -1051,7 +1051,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.2.4