9
0
Fork 0

ARM: ccmx51: Return error if module is not detected

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Alexander Shiyan 2013-06-10 11:13:20 +04:00 committed by Sascha Hauer
parent ea66559825
commit 6d12ca692b
1 changed files with 2 additions and 1 deletions

View File

@ -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();