提交 af6a9aab 编写于 作者: J John Rigby 提交者: Kumar Gala

[POWERPC] 52xx: Fix mpc52xx_uart_of_assign to use correct index

Use idx as index into mpc52xx_uart_nodes instead of i
Signed-off-by: NJohn Rigby <jrigby@freescale.com>
Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
上级 82925e76
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册