aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of/Makefile
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2017-10-04 14:09:40 -0500
committerRob Herring <robh@kernel.org>2017-10-16 13:37:38 -0500
commitb56b5528f5b3c3d47e7c0ca67318c45e980d93f0 (patch)
tree6c97fc5ee0bb26a4f3c762218a6b351ad3955c8a /drivers/of/Makefile
parentof: wrap accesses to device_node kobject (diff)
downloadlinux-dev-b56b5528f5b3c3d47e7c0ca67318c45e980d93f0.tar.xz
linux-dev-b56b5528f5b3c3d47e7c0ca67318c45e980d93f0.zip
of: make kobject and bin_attribute support configurable
Having device_nodes be kobjects is only needed if sysfs or OF_DYNAMIC is enabled. Otherwise, having a kobject in struct device_node is unnecessary bloat in minimal kernel configurations. Likewise, bin_attribute is only needed in struct property when sysfs is enabled, so we can make it configurable too. 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>
Diffstat (limited to 'drivers/of/Makefile')
-rw-r--r--drivers/of/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/of/Makefile b/drivers/of/Makefile
index 97dc01c81438..83d61a7c5e82 100644
--- a/drivers/of/Makefile
+++ b/drivers/of/Makefile
@@ -1,4 +1,5 @@
obj-y = base.o device.o platform.o property.o
+obj-$(CONFIG_OF_KOBJ) += kobj.o
obj-$(CONFIG_OF_DYNAMIC) += dynamic.o
obj-$(CONFIG_OF_FLATTREE) += fdt.o
obj-$(CONFIG_OF_EARLY_FLATTREE) += fdt_address.o