[BSP] fix the compiling issue in AT91SAM9260

This commit is contained in:
Bernard Xiong 2017-12-24 10:21:33 +08:00
parent cc183a8d01
commit c9a505be37
1 changed files with 1 additions and 1 deletions

View File

@ -876,7 +876,7 @@ int rt_hw_macb_init(void)
if (ret != RT_EOK)
{
rt_kprintf("AT91 EMAC initialized failed\n");
return;
return -1;
}
rt_sem_init(&macb_device.tx_ack, "tx_ack", 0, RT_IPC_FLAG_FIFO);
rt_sem_init(&macb_device.tx_lock, "tx_lock", 1, RT_IPC_FLAG_FIFO);