“dbac7cb8a7fcae34ffda04e4bc30673c2ea841ae”上不存在“README.md”
提交 aea12b75 编写于 作者: L Li Yang 提交者: Kumar Gala

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

Fix broken node manipulating code, and clarify inaccurate comment.
Signed-off-by: NLi Yang <leoli@freescale.com>
Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部