Commit 10a2f608 authored by Rob Herring's avatar Rob Herring Committed by Kleber Sacilotto de Souza

of: fix missing kobject init for !SYSFS && OF_DYNAMIC config

BugLink: https://bugs.launchpad.net/bugs/1875905

[ Upstream commit bd82bbf3 ]

The ref counting is broken for OF_DYNAMIC when sysfs is disabled because
the kobject initialization is skipped. Only the properties
add/remove/update should be skipped for !SYSFS config.
Tested-by: default avatarNicolas Pitre <nico@linaro.org>
Reviewed-by: default avatarFrank Rowand <frowand.list@gmail.com>
Acked-by: default avatarGrant Likely <grant.likely@secretlab.ca>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarIan May <ian.may@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent 94a2aa3c
......@@ -167,9 +167,6 @@ int __of_attach_node_sysfs(struct device_node *np)
struct property *pp;
int rc;
if (!IS_ENABLED(CONFIG_SYSFS))
return 0;
if (!of_kset)
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment