[PATCH 117/171] Correct SPL uses of OF_BOARD
Matthias Brugger
mbrugger at suse.com
Tue Jan 31 12:13:24 CET 2023
On 30/01/2023 16:15, Simon Glass wrote:
> This converts 3 usages of this option to the non-SPL form, since there is
> no SPL_OF_BOARD defined in Kconfig
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> drivers/pinctrl/broadcom/pinctrl-bcm283x.c | 2 +-
> drivers/serial/serial_bcm283x_mu.c | 2 +-
> drivers/serial/serial_bcm283x_pl011.c | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/serial/serial_bcm283x_mu.c b/drivers/serial/serial_bcm283x_mu.c
> index 12cbcb9858c..7585f790d22 100644
> --- a/drivers/serial/serial_bcm283x_mu.c
> +++ b/drivers/serial/serial_bcm283x_mu.c
> @@ -197,7 +197,7 @@ U_BOOT_DRIVER(serial_bcm283x_mu) = {
> .plat_auto = sizeof(struct bcm283x_mu_serial_plat),
> .probe = bcm283x_mu_serial_probe,
> .ops = &bcm283x_mu_serial_ops,
> -#if !CONFIG_IS_ENABLED(OF_CONTROL) || CONFIG_IS_ENABLED(OF_BOARD)
> +#if !CONFIG_IS_ENABLED(OF_CONTROL) || IS_ENABLED(CONFIG_OF_BOARD)
> .flags = DM_FLAG_PRE_RELOC,
> #endif
> .priv_auto = sizeof(struct bcm283x_mu_priv),
> diff --git a/drivers/serial/serial_bcm283x_pl011.c b/drivers/serial/serial_bcm283x_pl011.c
> index 7d172cdac0a..09a9868a38f 100644
> --- a/drivers/serial/serial_bcm283x_pl011.c
> +++ b/drivers/serial/serial_bcm283x_pl011.c
> @@ -94,7 +94,7 @@ U_BOOT_DRIVER(bcm283x_pl011_uart) = {
> .probe = bcm283x_pl011_serial_probe,
> .plat_auto = sizeof(struct pl01x_serial_plat),
> .ops = &bcm283x_pl011_serial_ops,
> -#if !CONFIG_IS_ENABLED(OF_CONTROL) || CONFIG_IS_ENABLED(OF_BOARD)
> +#if !CONFIG_IS_ENABLED(OF_CONTROL) || IS_ENABLED(CONFIG_OF_BOARD)
> .flags = DM_FLAG_PRE_RELOC,
> #endif
> .priv_auto = sizeof(struct pl01x_priv),
For bcm283x:
Reviewed-by: Matthias Brugger <mbrugger at suse.com>
More information about the U-Boot
mailing list