of: Move of_platform_register_reconfig_notifier() into DT core
authorRob Herring <robh@kernel.org>
Mon, 17 Jul 2023 14:37:16 +0000 (08:37 -0600)
committerRob Herring <robh@kernel.org>
Fri, 4 Aug 2023 17:36:33 +0000 (11:36 -0600)
commit73aca58b781e3e3d52bb7247b374fb5334a05001
treec9f3c167ca8bb770cee823f9e8ae9088c1221851
parent3e82150697d90d67196c8ed14aac0119072ff022
of: Move of_platform_register_reconfig_notifier() into DT core

There's no reason the generic platform bus code needs to call
of_platform_register_reconfig_notifier(). The notifier can be setup
before the platform bus is. Let's move it into of_core_init() which is
called just before platform_bus_init() instead to keep more of the DT
bits in the DT code.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20230717143718.1715773-1-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/base/platform.c
drivers/of/base.c
drivers/of/of_private.h
drivers/of/platform.c
include/linux/of_platform.h