[PATCH 1/9] ARM: imx53: guard voipac vmx53 init function

Sascha Hauer s.hauer at pengutronix.de
Tue Jan 14 11:22:55 EST 2014


On Mon, Jan 13, 2014 at 01:17:22AM +0100, Lucas Stach wrote:
> Otherwise we end up doing the VMX53 board init for
> unrelated boards when using a multiimage build.
> 
> Signed-off-by: Lucas Stach <dev at lynxeye.de>

Applied, thanks

Sascha

> ---
>  arch/arm/boards/freescale-mx53-vmx53/board.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/arch/arm/boards/freescale-mx53-vmx53/board.c b/arch/arm/boards/freescale-mx53-vmx53/board.c
> index b38db71..d0cc495 100644
> --- a/arch/arm/boards/freescale-mx53-vmx53/board.c
> +++ b/arch/arm/boards/freescale-mx53-vmx53/board.c
> @@ -30,6 +30,9 @@ extern char flash_header_imx53_vmx53_end[];
>  
>  static int vmx53_late_init(void)
>  {
> +	if (!of_machine_is_compatible("voipac,imx53-dmm-668"))
> +			return 0;
> +
>  	armlinux_set_architecture(MACH_TYPE_VMX53);
>  
>  	barebox_set_model("Voipac VMX53");
> -- 
> 1.8.4.2
> 
> 
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list