[POWERPC] 83xx: Minor fixes for 834x_mds USB setup code

Fix broken node manipulating code, and clarify inaccurate comment.

Signed-off-by: Li Yang <leoli@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>

authored by Li Yang and committed by Kumar Gala aea12b75 b5d99e64

+4 -4
+4 -4
arch/powerpc/platforms/83xx/mpc834x_mds.c
··· 55 struct device_node *np = NULL; 56 int port0_is_dr = 0; 57 58 - if ((np = of_find_compatible_node(np, "usb", "fsl-usb2-dr")) != NULL) 59 port0_is_dr = 1; 60 - if ((np = of_find_compatible_node(np, "usb", "fsl-usb2-mph")) != NULL){ 61 if (port0_is_dr) { 62 printk(KERN_WARNING 63 "There is only one USB port on PB board! \n"); ··· 103 return -1; 104 105 /* 106 - * if MDS board is plug into PIB board, 107 - * force to use the PHY on MDS board 108 */ 109 bcsr5 = in_8(bcsr_regs + 5); 110 if (!(bcsr5 & BCSR5_INT_USB))
··· 55 struct device_node *np = NULL; 56 int port0_is_dr = 0; 57 58 + if ((np = of_find_compatible_node(NULL, "usb", "fsl-usb2-dr")) != NULL) 59 port0_is_dr = 1; 60 + if ((np = of_find_compatible_node(NULL, "usb", "fsl-usb2-mph")) != NULL){ 61 if (port0_is_dr) { 62 printk(KERN_WARNING 63 "There is only one USB port on PB board! \n"); ··· 103 return -1; 104 105 /* 106 + * if Processor Board is plugged into PIB board, 107 + * force to use the PHY on Processor Board 108 */ 109 bcsr5 = in_8(bcsr_regs + 5); 110 if (!(bcsr5 & BCSR5_INT_USB))