of: Make device nodes kobjects so they show up in sysfs
[deliverable/linux.git] / drivers / of / fdt.c
index 758b4f8b30b7d237c92b6a541f01db535d37101b..96ad1ab7f9d64075cab8c8413d52e8c5907c595b 100644 (file)
@@ -232,7 +232,6 @@ static void * unflatten_dt_node(struct boot_param_header *blob,
                                dad->next->sibling = np;
                        dad->next = np;
                }
-               kref_init(&np->kref);
        }
        /* process properties */
        while (1) {
@@ -327,6 +326,8 @@ static void * unflatten_dt_node(struct boot_param_header *blob,
                        np->name = "<NULL>";
                if (!np->type)
                        np->type = "<NULL>";
+
+               of_node_add(np);
        }
        while (tag == OF_DT_BEGIN_NODE || tag == OF_DT_NOP) {
                if (tag == OF_DT_NOP)
This page took 0.024733 seconds and 5 git commands to generate.