aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of/base.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2017-10-05 12:01:46 -0500
committerRob Herring <robh@kernel.org>2017-10-16 13:37:36 -0500
commitbd82bbf38cbe27f2c65660da801900d71bcc5cc8 (patch)
treeed401e3b27c5fa24f28c0a91222274b948d635db /drivers/of/base.c
parentdevicetree: Add vendor-prefix for DH electronics GmbH (diff)
downloadlinux-dev-bd82bbf38cbe27f2c65660da801900d71bcc5cc8.tar.xz
linux-dev-bd82bbf38cbe27f2c65660da801900d71bcc5cc8.zip
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: 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/base.c')
-rw-r--r--drivers/of/base.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c
index 260d33c0f26c..9e9bd17121fb 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -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;