From 3058879982ec2ad0a53222dd3a518fb609ca7ae7 Mon Sep 17 00:00:00 2001 From: Michael Trimarchi Date: Sat, 23 Jun 2018 16:10:07 +0200 Subject: i.MX6: engicam: gpr_init can be called only for some architecture Fix an invalid usage of the gpr_init function for the imx6ul architecture Signed-off-by: Michael Trimarchi Acked-by: Jagan Teki --- board/engicam/common/spl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'board/engicam') diff --git a/board/engicam/common/spl.c b/board/engicam/common/spl.c index 1a1fe6c66a4..4d293c8032d 100644 --- a/board/engicam/common/spl.c +++ b/board/engicam/common/spl.c @@ -414,7 +414,8 @@ void board_init_f(ulong dummy) /* setup AIPS and disable watchdog */ arch_cpu_init(); - gpr_init(); + if (!(is_mx6ul())) + gpr_init(); /* iomux */ SETUP_IOMUX_PADS(uart_pads); -- cgit v1.2.3