of: unify phandle name in struct device_node
[safe/jmp/linux-2.6] / arch / sparc / kernel / of_device_32.c
index 4c26eb5..09138d4 100644 (file)
@@ -433,7 +433,7 @@ build_resources:
        if (!parent)
                dev_set_name(&op->dev, "root");
        else
-               dev_set_name(&op->dev, "%08x", dp->node);
+               dev_set_name(&op->dev, "%08x", dp->phandle);
 
        if (of_device_register(op)) {
                printk("%s: Could not register of device.\n",