Skip to contentSkip to conversation

minor fixes for 834x_mds USB setup code

PATCH Applied Li Yang 2 participants 2 messages Mar 6, 2007 – Mar 8, 2007

Subsystems (2)
lore
Share & tools
lore

Li Yang

author
#0 lore raw

PATCH 1/1 minor fixes for 834x_mds USB setup code

Fix broken node manipulating code, and clarify inaccurate comment.

---

arch/powerpc/platforms/83xx/mpc834x_mds.c +0 -0
index e5d8191..8aa9a93 100644
@@ -55,9 +55,9 @@ static int mpc834x_usb_cfg(void)
	struct device_node *np = NULL;
	int port0_is_dr = 0;

- if ((np = of_find_compatible_node(np, "usb", "fsl-usb2-dr")) != NULL)
+ if ((np = of_find_compatible_node(NULL, "usb", "fsl-usb2-dr")) != NULL)

		port0_is_dr = 1;
-	if ((np = of_find_compatible_node(np, "usb", "fsl-usb2-mph")) != NULL){
+	if ((np = of_find_compatible_node(NULL, "usb", "fsl-usb2-mph")) != NULL){
		if (port0_is_dr) {
			printk(KERN_WARNING
				"There is only one USB port on PB board! \n");
@@ -103,8 +103,8 @@ static int mpc834x_usb_cfg(void)
		return -1;

	/*

- * if MDS board is plug into PIB board,
- * force to use the PHY on MDS board
+ * if Processor Board is plugged into PIB board,
+ * force to use the PHY on Processor Board

	 */
	bcsr5 = in_8(bcsr_regs + 5);
	if (!(bcsr5 & BCSR5_INT_USB))