of: remove struct property.unique_id for FDT
authorRob Herring <[email protected]>
Sat, 30 Sep 2017 01:08:28 +0000 (20:08 -0500)
committerRob Herring <[email protected]>
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 <[email protected]>
Reviewed-by: Frank Rowand <[email protected]>
Acked-by: Grant Likely <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
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;
 };