]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
of: fix missing kobject init for !SYSFS && OF_DYNAMIC config
authorRob Herring <robh@kernel.org>
Thu, 5 Oct 2017 17:01:46 +0000 (12:01 -0500)
committerRob Herring <robh@kernel.org>
Mon, 16 Oct 2017 18:37:36 +0000 (13:37 -0500)
commitbd82bbf38cbe27f2c65660da801900d71bcc5cc8
treeed401e3b27c5fa24f28c0a91222274b948d635db
parentde18e4bea0784e8df67c908c6157acc05ecba0cf
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>
drivers/of/base.c