[PATCH 3/3] ARM: ccmx51: Return error if module is not detected
Alexander Shiyan
shc_work at mail.ru
Mon Jun 10 03:13:20 EDT 2013
Signed-off-by: Alexander Shiyan <shc_work at mail.ru>
---
arch/arm/boards/ccxmx51/ccxmx51.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boards/ccxmx51/ccxmx51.c b/arch/arm/boards/ccxmx51/ccxmx51.c
index d34759a..e60a101 100644
--- a/arch/arm/boards/ccxmx51/ccxmx51.c
+++ b/arch/arm/boards/ccxmx51/ccxmx51.c
@@ -415,7 +415,8 @@ static int ccxmx51_devices_init(void)
printf("Module Serial : %c%d\n", manloc, ((hwid[2] & 0x3f) << 24) | (hwid[3] << 16) | (hwid[4] << 8) | hwid[5]);
if ((ccxmx51_id->mem_sz - SZ_128M) > 0)
arm_add_mem_device("ram1", MX51_CSD0_BASE_ADDR + SZ_128M, ccxmx51_id->mem_sz - SZ_128M);
- }
+ } else
+ return -ENOSYS;
imx51_add_uart1();
imx51_add_uart2();
--
1.8.1.5
More information about the barebox
mailing list