mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-23 19:14:30 +08:00
drivers: net: pxa168: use setup_timer() helper.
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais <allen.lkml@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d2a0012e76
commit
636873890c
@ -1496,9 +1496,8 @@ static int pxa168_eth_probe(struct platform_device *pdev)
|
||||
netif_napi_add(dev, &pep->napi, pxa168_rx_poll, pep->rx_ring_size);
|
||||
|
||||
memset(&pep->timeout, 0, sizeof(struct timer_list));
|
||||
init_timer(&pep->timeout);
|
||||
pep->timeout.function = rxq_refill_timer_wrapper;
|
||||
pep->timeout.data = (unsigned long)pep;
|
||||
setup_timer(&pep->timeout, rxq_refill_timer_wrapper,
|
||||
(unsigned long)pep);
|
||||
|
||||
pep->smi_bus = mdiobus_alloc();
|
||||
if (!pep->smi_bus) {
|
||||
|
Loading…
Reference in New Issue
Block a user