]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
of: remove struct property.unique_id for FDT
authorRob Herring <robh@kernel.org>
Sat, 30 Sep 2017 01:08:28 +0000 (20:08 -0500)
committerRob Herring <robh@kernel.org>
Mon, 16 Oct 2017 18:37:37 +0000 (13:37 -0500)
Only Sparc uses unique_id, so remove it for FDT builds and shrink struct
property a bit making the unflattened DT less of a memory hog.

Tested-by: Nicolas Pitre <nico@linaro.org>
Reviewed-by: Frank Rowand <frowand.list@gmail.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Rob Herring <robh@kernel.org>
include/linux/of.h

index cfc34117fc9203eefc2702a87271a95f761a2a3a..8f9e9675283750ddce7afae77808c2689cd252c4 100644 (file)
@@ -38,7 +38,9 @@ struct property {
        void    *value;
        struct property *next;
        unsigned long _flags;
+#if defined(CONFIG_OF_PROMTREE)
        unsigned int unique_id;
+#endif
        struct bin_attribute attr;
 };