Commit aea12b75 authored by Li Yang's avatar Li Yang Committed by Kumar Gala

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

Fix broken node manipulating code, and clarify inaccurate comment.
Signed-off-by: default avatarLi Yang <leoli@freescale.com>
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent b5d99e64
...@@ -55,9 +55,9 @@ static int mpc834x_usb_cfg(void) ...@@ -55,9 +55,9 @@ static int mpc834x_usb_cfg(void)
struct device_node *np = NULL; struct device_node *np = NULL;
int port0_is_dr = 0; 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; 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) { if (port0_is_dr) {
printk(KERN_WARNING printk(KERN_WARNING
"There is only one USB port on PB board! \n"); "There is only one USB port on PB board! \n");
...@@ -103,8 +103,8 @@ static int mpc834x_usb_cfg(void) ...@@ -103,8 +103,8 @@ static int mpc834x_usb_cfg(void)
return -1; return -1;
/* /*
* if MDS board is plug into PIB board, * if Processor Board is plugged into PIB board,
* force to use the PHY on MDS board * force to use the PHY on Processor Board
*/ */
bcsr5 = in_8(bcsr_regs + 5); bcsr5 = in_8(bcsr_regs + 5);
if (!(bcsr5 & BCSR5_INT_USB)) if (!(bcsr5 & BCSR5_INT_USB))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment