Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56613
b: refs/heads/master
c: 847f597
h: refs/heads/master
i:
  56611: ceee624
v: v3
  • Loading branch information
Benjamin Herrenschmidt authored and Paul Mackerras committed May 17, 2007
1 parent 70d342e commit 4e3b564
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: c72ea777d4e51435388fbd863c813a19635fa8ef
refs/heads/master: 847f5976f90d5637a86a826c1c594091d08f3156
5 changes: 5 additions & 0 deletions trunk/arch/powerpc/kernel/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -1472,6 +1472,11 @@ static int of_finish_dynamic_node(struct device_node *node)
node->name = of_get_property(node, "name", NULL);
node->type = of_get_property(node, "device_type", NULL);

if (!node->name)
node->name = "<NULL>";
if (!node->type)
node->type = "<NULL>";

if (!parent) {
err = -ENODEV;
goto out;
Expand Down

0 comments on commit 4e3b564

Please sign in to comment.