Fix mpc52xx_uart_of_assign to use correct index
PATCH 1/1 Fix mpc52xx_uart_of_assign to use correct index
Use idx as index into mpc52xx_uart_nodes instead of i
Signed-off-by John Rigby <[email protected]>
--- drivers/serial/mpc52xx_uart.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/serial/mpc52xx_uart.c +1 -1
@@ -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
Signature · 1 line
1.5.1.1.174.gabbf5
Quoted 3 lines · John Rigby
Use idx as index into
mpc52xx_uart_nodesinstead of iSigned-off-by John Rigby <[email protected]>
Good catch
Acked-by Grant Likely <[email protected]>
g.
Signature · 4 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. [email protected] (403) 399-0195