[U-Boot] [PATCH 8/8] video: imx25lcdc: add board_video_init() call

Jeroen Hofstee dasuboot at myspectrum.nl
Fri May 16 22:40:35 CEST 2014


Hello Thomas,

On do, 2014-05-15 at 16:34 +0200, dietho at gmx.de wrote:
> From: Thomas Diener <dietho at gmx.de>
> 
> Signed-off-by: Thomas Diener <dietho at gmx.de>
> ---
>  drivers/video/imx25lcdc.c |   19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)
> 
> diff --git a/drivers/video/imx25lcdc.c b/drivers/video/imx25lcdc.c
> index 3b45472..94ef033 100644
> --- a/drivers/video/imx25lcdc.c
> +++ b/drivers/video/imx25lcdc.c
> @@ -23,6 +23,19 @@
>  #define FB_SYNC_CLK_INV		(1<<16)	/* pixel clock inverted */
>  
>  /*
> + * We do not enforce board code to provide empty/unused
> + * functions for this driver and define weak default
> + * functions here.
> + */
> +unsigned int __board_video_init (void)
> +{
> +	return 0;
> +}
> +
> +unsigned int board_video_init (void)
> +			__attribute__((weak, alias("__board_video_init")));
> +

Cosmetic remark. You can merge these with a single __weak.

Regards,
Jeroen



More information about the U-Boot mailing list