summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2017-09-29 20:08:28 -0500
committerRob Herring <robh@kernel.org>2017-10-16 13:37:37 -0500
commit36689ecd2c065a8879035e5bf1b4a0f4d5b65160 (patch)
treea4d539fd27c81ff0caff7f08ab82523250ffedeb
parentbd82bbf38cbe27f2c65660da801900d71bcc5cc8 (diff)
downloadlinux-36689ecd2c065a8879035e5bf1b4a0f4d5b65160.tar.gz
linux-36689ecd2c065a8879035e5bf1b4a0f4d5b65160.tar.bz2
linux-36689ecd2c065a8879035e5bf1b4a0f4d5b65160.zip
of: remove struct property.unique_id for FDT
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>
-rw-r--r--include/linux/of.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index cfc34117fc92..8f9e96752837 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -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;
};