Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98587
b: refs/heads/master
c: 1e6d1f2
h: refs/heads/master
i:
  98585: 920e57b
  98583: ad5f90d
v: v3
  • Loading branch information
John Linn authored and Grant Likely committed Jul 1, 2008
1 parent d4d9d90 commit e62b01a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5d1a04110bfc40a86e1387b5f4382addd9aa7fbb
refs/heads/master: 1e6d1f260611387a7b4e6eae4d1dd6f62e53714d
5 changes: 5 additions & 0 deletions trunk/arch/powerpc/kernel/legacy_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ static int __init add_legacy_soc_port(struct device_node *np,
if (of_get_property(np, "clock-frequency", NULL) == NULL)
return -1;

/* if reg-shift or offset, don't try to use it */
if ((of_get_property(np, "reg-shift", NULL) != NULL) ||
(of_get_property(np, "reg-offset", NULL) != NULL))
return -1;

/* if rtas uses this device, don't try to use it as well */
if (of_get_property(np, "used-by-rtas", NULL) != NULL)
return -1;
Expand Down

0 comments on commit e62b01a

Please sign in to comment.