aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs
diff options
context:
space:
mode:
authorWesley W. Terpstra <wesley@sifive.com>2018-06-21 15:37:37 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-07 17:54:29 +0200
commit319b11ef5719a2f0ae65ce5f665f263a5e7a06c3 (patch)
tree2d1f721fc2c73cb27526fc56f0d9fb4e17589daa /fs/sysfs
parentlinux/device.h: fix kernel-doc notation warning (diff)
downloadlinux-dev-319b11ef5719a2f0ae65ce5f665f263a5e7a06c3.tar.xz
linux-dev-319b11ef5719a2f0ae65ce5f665f263a5e7a06c3.zip
base: fix order of OF initialization
This fixes: [ 0.010000] cpu cpu0: Error -2 creating of_node link ... which you get for every CPU on all architectures that use CONFIG_GENERIC_CPU_DEVICES. In that case, driver_init() calls cpu_dev_init() before calling of_core_init(). Then we get the callchain: cpu_dev_init() -> cpu_dev_register_generic() -> register_cpu(cpu, i) -> device_register(&cpu->dev) -> device_add(dev) -> device_add_class_symlinks(dev) ... in device_add_class_symlinks, we we dev->of_node, and call sysfs_create_link(), which fails because we haven't called of_core_init() to register the sysfs devicetree directory yet. Signed-off-by: Wesley W. Terpstra <wesley@sifive.com> [hch: updated the changelog based on review feedback] Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Mark Rutland <mark.rutland@arm.com> Acked-by: Frank Rowand <frowand.list@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/sysfs')
0 files changed, 0 insertions, 0 deletions