Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd82bbf3 authored by Rob Herring's avatar Rob Herring
Browse files

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



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>
parent de18e4be
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -169,9 +169,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;