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. Change-Id: I0a70d2b4b0d362493987fca2eb91e77ae3171d1e 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> Git-Commit: b56b5528f5b3c3d47e7c0ca67318c45e980d93f0 Git-Repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git [pdaly: added NULL check in safe_name()] Signed-off-by:
Patrick Daly <pdaly@codeaurora.org>
Loading
Please register or sign in to comment