imx233: fix bootloader

The bootloader must call disk_init_subsystem() because it is multithread
(because of USB), otherwise strange things might happen. Calling disk_init()
is unnecessary since it is call when mounting partitions.

Change-Id: If7aff3dea0b96144e2a9b0f6179a9a0a632b93ed
This commit is contained in:
Amaury Pouly 2013-10-02 16:49:43 +02:00
parent 110e094db5
commit e21d8f59da

View file

@ -176,8 +176,7 @@ void main(uint32_t arg, uint32_t addr)
/* NOTE: allow disk_init and disk_mount_all to fail since we can do USB after.
* We need this order to determine the correct logical sector size */
while(!disk_init(IF_MV(0)))
printf("disk_init failed!");
disk_init_subsystem();
if((ret = disk_mount_all()) <= 0)
error(EDISK, ret, false);