Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af6a9aab authored by John Rigby's avatar John Rigby Committed by Kumar Gala
Browse files

[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: default avatarJohn Rigby <jrigby@freescale.com>
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 82925e76
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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