Skip to content

Commit

Permalink
[POWERPC] 52xx: Fix mpc52xx_uart_of_assign to use correct index
Browse files Browse the repository at this point in the history
Use idx as index into mpc52xx_uart_nodes instead of i

Signed-off-by: John Rigby <jrigby@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
  • Loading branch information
John Rigby authored and Kumar Gala committed Sep 14, 2007
1 parent 82925e7 commit af6a9aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/serial/mpc52xx_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit af6a9aa

Please sign in to comment.