On Mon, Jul 17, 2023 at 08:37:16AM -0600, Rob Herring wrote:
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.
Signed-off-by: Rob Herring <robh@kernel.org>
---
drivers/base/platform.c | 2 +-
drivers/of/base.c | 1 +
drivers/of/of_private.h | 6 ++++++
drivers/of/platform.c | 2 ++
include/linux/of_platform.h | 6 ------
5 files changed, 10 insertions(+), 7 deletions(-)
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>