Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210295
b: refs/heads/master
c: fa9fc82
h: refs/heads/master
i:
  210293: 99ee337
  210291: db77ecf
  210287: ea62be3
v: v3
  • Loading branch information
Julia Lawall authored and Kumar Gala committed Aug 31, 2010
1 parent 504d850 commit 8b94eda
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ff33f1821259d00d3fd85d86f59783e2ca3c9ee1
refs/heads/master: fa9fc821f8892590211a9aa9e855eb83152b9870
9 changes: 6 additions & 3 deletions trunk/arch/powerpc/platforms/83xx/mpc837x_mds.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ static int mpc837xmds_usb_cfg(void)
return -1;

np = of_find_node_by_name(NULL, "usb");
if (!np)
return -ENODEV;
if (!np) {
ret = -ENODEV;
goto out;
}
phy_type = of_get_property(np, "phy_type", NULL);
if (phy_type && !strcmp(phy_type, "ulpi")) {
clrbits8(bcsr_regs + 12, BCSR12_USB_SER_PIN);
Expand All @@ -65,8 +67,9 @@ static int mpc837xmds_usb_cfg(void)
}

of_node_put(np);
out:
iounmap(bcsr_regs);
return 0;
return ret;
}

/* ************************************************************************
Expand Down

0 comments on commit 8b94eda

Please sign in to comment.