Skip to content

Commit

Permalink
[POWERPC] 83xx: Minor fixes for 834x_mds USB setup code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Li Yang authored and Kumar Gala committed Mar 8, 2007
1 parent b5d99e6 commit aea12b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arch/powerpc/platforms/83xx/mpc834x_mds.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit aea12b7

Please sign in to comment.