fix at91sam9260 emac driver compiling warning

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2058 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
luohui2320@gmail.com 2012-04-14 16:20:27 +00:00
parent d97ea98c7d
commit c026856407
1 changed files with 3 additions and 2 deletions

View File

@ -294,8 +294,9 @@ static int macb_phy_init(rt_device_t dev)
}
}
void macb_update_link(struct rt_macb_eth *macb)
void macb_update_link(void *param)
{
struct rt_macb_eth *macb = (struct rt_macb_eth *)param;
rt_device_t dev = &macb->parent.parent;
rt_uint32_t status, status_change = 0;
rt_uint32_t link;
@ -407,7 +408,7 @@ static rt_err_t rt_macb_init(rt_device_t dev)
rt_timer_init(&macb->timer, "link_timer",
macb_update_link,
macb,
(void *)macb,
RT_TICK_PER_SECOND,
RT_TIMER_FLAG_PERIODIC);