Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81237
b: refs/heads/master
c: 3329c0d
h: refs/heads/master
i:
  81235: 362c2ca
v: v3
  • Loading branch information
Cyrill Gorcunov authored and Paul Mackerras committed Jan 17, 2008
1 parent 1d9cdb2 commit 86cbc30
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 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: 26cb7d8bbddc8338904b8810b860ccf052c761fa
refs/heads/master: 3329c0d1b2de2eb9e156aa8c13ad639f54791f24
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/kernel/btext.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ int __init btext_find_display(int allow_nonstdout)
if (rc == 0 || !allow_nonstdout)
return rc;

for (np = NULL; (np = of_find_node_by_type(np, "display"));) {
for_each_node_by_type(np, "display") {
if (of_get_property(np, "linux,opened", NULL)) {
printk("trying %s ...\n", np->full_name);
rc = btext_initialize(np);
Expand Down
8 changes: 4 additions & 4 deletions trunk/arch/powerpc/kernel/legacy_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ void __init find_legacy_serial_ports(void)
}

/* First fill our array with SOC ports */
for (np = NULL; (np = of_find_compatible_node(np, "serial", "ns16550")) != NULL;) {
for_each_compatible_node(np, "serial", "ns16550") {
struct device_node *soc = of_get_parent(np);
if (soc && !strcmp(soc->type, "soc")) {
index = add_legacy_soc_port(np, np);
Expand All @@ -318,7 +318,7 @@ void __init find_legacy_serial_ports(void)
}

/* First fill our array with ISA ports */
for (np = NULL; (np = of_find_node_by_type(np, "serial"));) {
for_each_node_by_type(np, "serial") {
struct device_node *isa = of_get_parent(np);
if (isa && !strcmp(isa->name, "isa")) {
index = add_legacy_isa_port(np, isa);
Expand All @@ -329,7 +329,7 @@ void __init find_legacy_serial_ports(void)
}

/* First fill our array with tsi-bridge ports */
for (np = NULL; (np = of_find_compatible_node(np, "serial", "ns16550")) != NULL;) {
for_each_compatible_node(np, "serial", "ns16550") {
struct device_node *tsi = of_get_parent(np);
if (tsi && !strcmp(tsi->type, "tsi-bridge")) {
index = add_legacy_soc_port(np, np);
Expand All @@ -340,7 +340,7 @@ void __init find_legacy_serial_ports(void)
}

/* First fill our array with opb bus ports */
for (np = NULL; (np = of_find_compatible_node(np, "serial", "ns16550")) != NULL;) {
for_each_compatible_node(np, "serial", "ns16550") {
struct device_node *opb = of_get_parent(np);
if (opb && (!strcmp(opb->type, "opb") ||
of_device_is_compatible(opb, "ibm,opb"))) {
Expand Down

0 comments on commit 86cbc30

Please sign in to comment.