diff options
author | Rob Herring <robh@kernel.org> | 2017-10-04 22:09:40 +0300 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2017-10-16 21:37:38 +0300 |
commit | b56b5528f5b3c3d47e7c0ca67318c45e980d93f0 (patch) | |
tree | 6c97fc5ee0bb26a4f3c762218a6b351ad3955c8a /drivers/of/Kconfig | |
parent | 0c3c234b95fa7f1dfa19e1456a47ebafc300dd6b (diff) | |
download | linux-b56b5528f5b3c3d47e7c0ca67318c45e980d93f0.tar.xz |
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/Kconfig')
-rw-r--r-- | drivers/of/Kconfig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig index ba7b034b2b91..ad9a9578f9c4 100644 --- a/drivers/of/Kconfig +++ b/drivers/of/Kconfig @@ -46,10 +46,14 @@ config OF_EARLY_FLATTREE config OF_PROMTREE bool +config OF_KOBJ + def_bool SYSFS + # Hardly any platforms need this. It is safe to select, but only do so if you # need it. config OF_DYNAMIC bool "Support for dynamic device trees" if OF_UNITTEST + select OF_KOBJ help On some platforms, the device tree can be manipulated at runtime. While this option is selected automatically on such platforms, you |