]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
of: fix missing kobject init for !SYSFS && OF_DYNAMIC config
authorRob Herring <robh@kernel.org>
Tue, 21 Apr 2020 12:40:16 +0000 (13:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Apr 2020 05:59:10 +0000 (07:59 +0200)
commit8063482e1cbc547e496b1e5c62b9d5155c71f378
treeacb14b526b49fa449b3244e46fef0675079cd763
parent1e0060e277d3f0989247898dc6ff90beca6e5d6b
of: fix missing kobject init for !SYSFS && OF_DYNAMIC config

[ Upstream commit bd82bbf38cbe27f2c65660da801900d71bcc5cc8 ]

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>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/of/base.c