]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
of/irq: Mark initialised interrupt controllers as populated
authorJon Hunter <jonathanh@nvidia.com>
Mon, 20 Jun 2016 13:49:18 +0000 (14:49 +0100)
committerRob Herring <robh@kernel.org>
Fri, 24 Jun 2016 20:17:02 +0000 (15:17 -0500)
For interrupt controllers successfully initialised early via device-tree,
mark these interrupt controllers as populated so we don't unnecessarily
create a device and populate any platform data later on in the boot
sequence when we populate all the various platform devices.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/irq.c

index 6ec743faabe8af781294eb2e275fb8eb16fd4344..1b58cd574316e50cf51b32aafa3d2afd57fa6f9e 100644 (file)
@@ -557,6 +557,8 @@ void __init of_irq_init(const struct of_device_id *matches)
                         * its children can get processed in a subsequent pass.
                         */
                        list_add_tail(&desc->list, &intc_parent_list);
+
+                       of_node_set_flag(desc->dev, OF_POPULATED);
                }
 
                /* Get the next pending parent that might have children */