summaryrefslogtreecommitdiff
path: root/bsp/at91sam9260
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2017-12-24 10:21:33 +0800
committerBernard Xiong <[email protected]>2017-12-24 10:21:33 +0800
commitc9a505be37854caa32053c1d7795284adb0e1c61 (patch)
tree2387c319745038cb0bf13bb1243052a9cc4a1980 /bsp/at91sam9260
parentcc183a8d016ff81b4485d045164475ab8b503aad (diff)
[BSP] fix the compiling issue in AT91SAM9260
Diffstat (limited to 'bsp/at91sam9260')
-rw-r--r--bsp/at91sam9260/drivers/macb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsp/at91sam9260/drivers/macb.c b/bsp/at91sam9260/drivers/macb.c
index fd1f508d3c..26400c62de 100644
--- a/bsp/at91sam9260/drivers/macb.c
+++ b/bsp/at91sam9260/drivers/macb.c
@@ -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);