Re: [PATCH 1/2] of: Move of_platform_register_reconfig_notifier() into DT core

From: Greg Kroah-Hartman
Date: Fri Aug 04 2023 - 10:26:20 EST


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@xxxxxxxxxx>
> ---
> 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@xxxxxxxxxxxxxxxxxxx>