Rev 3672 | Rev 4011 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3672 | Rev 3790 | ||
---|---|---|---|
Line 83... | Line 83... | ||
83 | { |
83 | { |
84 | ofw_tree_property_t *prop; |
84 | ofw_tree_property_t *prop; |
85 | 85 | ||
86 | prop = ofw_tree_getprop(node, "name"); |
86 | prop = ofw_tree_getprop(node, "name"); |
87 | if (!prop) |
87 | if (!prop) |
88 | panic("Node without name property.\n"); |
88 | panic("Node without name property."); |
89 | 89 | ||
90 | if (prop->size < 2) |
90 | if (prop->size < 2) |
91 | panic("Invalid name property.\n"); |
91 | panic("Invalid name property."); |
92 | 92 | ||
93 | return prop->value; |
93 | return prop->value; |
94 | } |
94 | } |
95 | 95 | ||
96 | /** Lookup child of given name. |
96 | /** Lookup child of given name. |