[U-Boot] [PATCH v1 08/11] ARM: display5: Remove U_BOOT_DEVICE definition of serial_mxc

Peng Fan peng.fan at nxp.com
Mon Jun 10 01:44:05 UTC 2019


> Subject: [PATCH v1 08/11] ARM: display5: Remove U_BOOT_DEVICE
> definition of serial_mxc
> 
> Before the wide DM/DTS adoption in the U-Boot proper, the display5 has
> been using only DM_SERIAL to provide serial console in pre-relocation.
> 
> After moving to full DM/DTS adoption in the U-Boot proper the
> U_BOOT_DEVICE definition is not needed anymore, as it has been replaced
> with udevice creation from provided DTS description.
> 
> Signed-off-by: Lukasz Majewski <lukma at denx.de>
> ---
> 
>  board/liebherr/display5/display5.c | 9 ---------
>  1 file changed, 9 deletions(-)
> 
> diff --git a/board/liebherr/display5/display5.c
> b/board/liebherr/display5/display5.c
> index d8383170d2..410d5bc782 100644
> --- a/board/liebherr/display5/display5.c
> +++ b/board/liebherr/display5/display5.c
> @@ -413,12 +413,3 @@ int misc_init_r(void)
> 
>  	return 0;
>  }
> -
> -static struct mxc_serial_platdata mxc_serial_plat = {
> -	.reg = (struct mxc_uart *)UART5_BASE,
> -};
> -
> -U_BOOT_DEVICE(mxc_serial) = {
> -	.name = "serial_mxc",
> -	.platdata = &mxc_serial_plat,
> -};

Reviewed-by: Peng Fan <peng.fan at nxp.com>

> --
> 2.11.0



More information about the U-Boot mailing list